FAST_WOLFS Posted December 19, 2015 Share Posted December 19, 2015 Hi, the function KillPed in my script it does not work, an example please This is for my resource "friendbot". I need to kill a bot and put invisibility, if you can They take part as a helper, if any when the script is run, I mean it works. Link to comment
1LoL1 Posted December 19, 2015 Share Posted December 19, 2015 Hi, the function KillPed in my script it does not work, an example please This is for my resource "friendbot". I need to kill a bot and put invisibility, if you can They take part as a helper, if any when the script is run, I mean it works. So post the script. Link to comment
FAST_WOLFS Posted December 19, 2015 Author Share Posted December 19, 2015 Ok..., not work: Example1, Server: function A4() setkillPed ( perro ) end addCommandHandler("a4", A4) "setKilledPed" exist or put it there but does not work with KilledPed. Example2, Client: function B14(b) killPed(perro,b) end addCommandHandler("b14", B14) Link to comment
Enargy, Posted December 20, 2015 Share Posted December 20, 2015 at serverside. addCommandHandler("a4", function(p) killPed(p) end) Link to comment
FAST_WOLFS Posted December 23, 2015 Author Share Posted December 23, 2015 Thanks, but not work. Now, i using other functions... Link to comment
1LoL1 Posted December 24, 2015 Share Posted December 24, 2015 Thanks, but not work.Now, i using other functions... perro is defined ped? if yes so try this: ped = createPed(id, x, y, z) function kill (source) killPed(ped) end addCommandHandler("kill", kill) If not so try this: function kill (source) killPed(source) end addCommandHandler("kill", kill) Link to comment
FAST_WOLFS Posted December 24, 2015 Author Share Posted December 24, 2015 Thanks, I'll try the other version into resource then, then i use in resource slothbot the function kill. I use clientside for all. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now