Cuchii
July 18, 2020, 9:37pm
1
Test Your Weapon On Ped
New version
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
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
TimmyM
July 18, 2020, 10:15pm
2
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
TimmyM
July 18, 2020, 10:36pm
4
Add this at the beginning of the script:
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
1 Like
Cuchii
July 18, 2020, 11:32pm
5
I don’t know, try to replace the client by a server script
Cuchii
July 18, 2020, 11:32pm
6
your server run with esx?
Voz1
July 19, 2020, 12:38am
7
What script are you using for the gun sight?
Cuchii
July 19, 2020, 12:50am
8
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)
Cuchii
July 19, 2020, 5:38pm
9
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
Cuchii
September 9, 2020, 3:18pm
12
I don’t test but I don’t think it’s like when you kill a player