Anyone know how?
I tried using enhance native trainers spawn vehicle by model name.. but it says invalid name
is it possible to spawn the new cars in sp?
DCass89
View profile on GTA5-Mods.com »
Posts made by DCass89
-
How to spawn gunrunning vehicles in single player?
-
[help] why is "myPeds" list always null
trying to make a simple script to spawn random peds and have them follow me, but myPeds list doesn't get updated?
how can i fix this?
myPeds list is initialized at the top of the class, then as i run SpawnPed() i add them to the list
I then check the list in onTick, but it always return null[CODE]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using GTA;
using GTA.Native;
using GTA.Math;namespace MyFirstScript
{
public class Class1 : Script
{
public int listCount = 0;
List<Ped> myPeds;public Class1() { Tick += onTick; KeyDown += onKeyDown; } private void onTick(object sender, EventArgs e) { if (myPeds != null) { listCount = myPeds.Count(); }else { UI.ShowSubtitle("myPeds is null"); } } private void onKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.L) { SpawnPed(); } } public void SpawnPed() { var myPed = World.CreatePed(PedHash.Miranda, Game.Player.Character.GetOffsetInWorldCoords(new Vector3(0, 5, 0))); myPeds.Add(myPed); } }
}
[/CODE]also....how do i correctly use the CODE tag? this doesn't look right lol
-
[help] how to make bodyguards
what is the best way to spawn peds as a bodyguard?
I assumed there would be something simple like
spawn.ped.guardplayer..i couldnt find anything like that so i instead just made my spawned ped relationships to dislike everyone except me, that sorta worked but now i need them to actually follow me around.. I was gonna try something like
(if distance between player/ped > 50(whatever) ped runs to player)
but i cant figure out how to get the peds locationam I on the right track or completely off? lol
also, how did you guys learn how to make all those awesome mods. just experimenting or is there some hidden resource(website?) that im unaware of... any help is always appreiciatedThanks
one more thing, how can i make my script use an ini config file
-
RE: Anyone know why this is happening with my suspension?
did you try rotating them in zmodeler to compensate?
not the best solution, but if it works, why not lol -
more cop cars help
Hi all, first post.. hope this is the right section
Go down for TLDR
I am trying to make more cop cars spawn, so i checked in popcycle.dat and changed column "PercCopCars" (percentage of cars that are cop cars), I put it up to 50, that didn't do anything.
There is another column for cars that spawn... one, only one, section had "VEH_COPCAR", so I tried adding that to other areas and it worked.. but it seems like its a city cop car, I cant find any info for spawning a country cop car. thats not a big deal tho..Now to edit every area...This whole file is very tedious, hundreds of different areas, each needs to be edited..There has to be an easier way
I just want like 2x more cop cars to be driving around, is there a simple way to do this?TLDR; what is the best/correct way to make more cop cars spawn?
Thanks for any help