I try to fix the bug of the TruckersJob… he doesnt gave the money when i have finished the mission
i have add this in the server.lua
IT’S Good ?
AddEventHandler("es:addedMoney" function(MISSION.getMoney)
function MISSION.getMoney()
TriggerEvent("es:addedMoney", currentMission[4])
TriggerEvent("truckerJob:getMoney", currentMission[4])
end
end)
OK got it working great with ES_Freeroam + Essential BUT after completing a mission the Truck turns off and does not allow me to use the truck and i am stuck on the other side of the map. if i step out of the truck the doors lock and i can no longer get back in. Options would be to teleport back to the Trucker Job to start a new one, but this isnt realistic… I would love to be able to despawn the trailers after they detach and have to drive the truck back and either keep the truck for another mission or park and despawn this as well… any help would be appreciated!
Alrighty, have all the code changed correctly, and still doesn’t work. As this was for an older style server that is no longer supported anymore as of last week, I’m thinking this has something to do with the FXServer settings and the communication between that and this program. I have noticed fixes for a couple of the older programs and getting money to work by changing the " : " to a " ." in the get money section of the code. Then again the FXServer may not be the issue at all but it seems to be with some of the older scripts out their… Any thoughts???