how would I go about doing that? I tried using the wiki and came up with this;
function pedLoad()
ped1 = createPed ( 287, 223, 1875, 18 )
giveWeapon( ped1, 31, 500, true )
setTimer( giveWeapon, 1000, 1, ped1, 2)
end
addEventHandler ( "onResourceStart", getRootElement(), pedLoad )
doesn't work though.
how would I go about doing that? I tried using the wiki and came up with this;
function pedLoad()ped1 = createPed ( 287, 223, 1875, 18 )giveWeapon( ped1, 31, 500, true )setTimer( giveWeapon, 1000, 1, ped1, 2)end addEventHandler ( "onResourceStart", getRootElement(), pedLoad )
doesn't work though.
I tried that before and it still didn't work, I have no idea why. PLus, I think the 'true' in giveWeapon sets the weapon slot to the weapon that is being given.
I tried that before and it still didn't work, I have no idea why. PLus, I think the 'true' in giveWeapon sets the weapon slot to the weapon that is being given.
Ok, I need some help with giving a ped a weapon.
I've managed to create the ped, but I want to give him a M4 with 500 Ammo, but it doesn't seem to be giving him it,
here's the .lua file;
function pedLoad ( )
ped1 = createPed ( 287, 223, 1875, 18 )
giveWeapon( ped1, 31, 500, true )
end
addEventHandler ( "onResourceStart", getRootElement(), pedLoad )
I'm a bit of a noob at lua scripting ;P
Ok, I need some help with giving a ped a weapon.
I've managed to create the ped, but I want to give him a M4 with 500 Ammo, but it doesn't seem to be giving him it,
here's the .lua file;
function pedLoad ( )
ped1 = createPed ( 287, 223, 1875, 18 )
giveWeapon( ped1, 31, 500, true )
end
addEventHandler ( "onResourceStart", getRootElement(), pedLoad )
I'm a bit of a noob at lua scripting ;P
Nah, I used to get it before. If you just delete the deathmatch folder, it might take a little bit longer to download, but you won't get the error. That's the theory anyway.
Nah, I used to get it before. If you just delete the deathmatch folder, it might take a little bit longer to download, but you won't get the error. That's the theory anyway.
The Valhalla server is crap anyway.
Try deleting your Multi Theft Auto/mods/resources/deathmatch folder, and then trying to connect to a server, it should work.
The Valhalla server is crap anyway.
Try deleting your Multi Theft Auto/mods/resources/deathmatch folder, and then trying to connect to a server, it should work.