Please Help Me To Working And Tutorial to make it work piggyback
did you ever find i fix for it ?
yes, it was a bad code put in ambulancejob âworks to put drag and police cuffâ
Rien de mieux quâun truc dĂ©bile xD a rajouter partout^^
Which part please
FACEING SAME PROBLEM . Anyone have solutions???
I want to add to the menu.
hello it is possible to replace the registercommand by the possiblity to put a touch a bit like the propose a person on the addons take a hostage
in the style :
â Key to take hostage
Citizen.CreateThread (function ()
while true do
Citizen.Wait (5)
if IsControlJustPressed (1, 124) and IsControlPressed (1, 124) then
takeHostage ()
end
end
end)
@Yozza Its another script thatâs causing this thats calling DetachEntity
every frame. Find it and remove it (the thread calling every frame)
loading this up on the server right now, it would be fun to be able to piggyback npcs too maybe even carry great addon thanks for sharing
Update:
Added force the piggyback animation every frame if another script or something cancels the animation
Fixed an error in the server console when the person did /piggyback when no one is nearby
Removed debug prints
Please update to latest!
@Robbster hey friend could help me iâm trying to use this piggyback script but it doesnât work at all iâll starto try / piggyback nothing happens iâm using customchat could you help me?
hey man what chat script is that been looking for a new one thatâs decent
ciganiq.
RegisterServerEvent("Piggyback:stop")
AddEventHandler("Piggyback:stop", function(targetSrc)
local source = source
if piggybacking[source] then
TriggerClientEvent("Piggyback:cl_stop", targetSrc)
piggybacking[source] = nil
beingPiggybacked[targetSrc] = nil
elseif beingPiggybacked[source] then
TriggerClientEvent("Piggyback:cl_stop", beingPiggybacked[source])
beingPiggybacked[source] = nil
piggybacking[beingPiggybacked[source]] = nil -- 'table index is nil' error in server console
end
end)
Piggyback riding seems to be working fine for everyone, but my server console is spammed with this error
table index is nil
Any ideas?