[RELEASE] Test Weapon With Ped

Test Your Weapon On Ped

New version

[DOWNLOAD] > testweaponped.zip (1.7 KB)

Older version

[DOWNLOAD OLDER VERSION] > testweaponped.rar (1.5 KB)

Place the testweaponped into your resource folder and then add

start testweaponped

to your server.cfg

Localisation : Central Armory

All in this script is explain, but in french, so you can translate my comments on google trad or what you want :wink:

Only for the older version

********UPDATE :
Sorry I forgot that because it was already put higher in my client.lua
So for it to work, add

ESX = nil

TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
3 Likes

Nice script.
If someone else starting the test, another player cant see the spawned peds.
Is there any way to change it?

1 Like

i have a litle problem, the script good start so i have a error

so i have pnj but nothinh interaction

Add this at the beginning of the script:

ESX = nil

TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
1 Like

I don’t know, try to replace the client by a server script

your server run with esx?

What script are you using for the gun sight?

This is not a script, just go to your GTA settings and go to display (surrounded in red) and set to complex this (surrounded in red)

Ok, you have to replace the :

mannequin1 = CreatePed("PED_TYPE_CIVMALE", "model",x, y ,z, false, true)  

By

mannequin1 = CreatePed("PED_TYPE_CIVMALE", "model",x, y ,z, true, true)  

(Replace the false by true)

that will network the ped but if its called from a client, every player will call npcs… i also could be wrong

Does damage works like when killing a player? example - If I shoot the ped with 2 bullets then died, it will be same as real player? 2 bullets to kill a real player too?

Sorry for noob question. I am working on localhost server and modify weapon damages

I don’t test but I don’t think it’s like when you kill a player