
Gta V FiveM Esx TruckerJob (Truck Driver Job)
TruckerJob v0.3 [UPDATE 29th January]
https://forum.cfx.re/t/release-truckerjob-v0-3-update-29th-january/5237
If you need FiveM Gameserver with one click installation check this:
https://zap-hosting.com/rpscripts
ENG: After I have recorded a video I have noticed that player don't get any money after he successfully did the Job. So I tried to find a way to make it work and almost freaked out but at the end it was fine here is the way how you can fix that. Most of the Idea were found here: https://forum.cfx.re/t/fix-bug-with-truckersjob-money/11444
in truckerjob.lua, replace line 203:
MISSION.getMoney()
by
TriggerServerEvent(‘truckerJob:success’,currentMission[4])
and in server.lua :
RegisterServerEvent('truckerJob:success')
AddEventHandler('truckerJob:success', function(price)
print("Player ID " ..source)
-- Get the players money amount
TriggerEvent('es:getPlayerFromId', source, function(user)
total = price;
-- update player money amount
user.addMoney((total))
end)
end)
DEU: Ich habe erst später gemerkt, dass Spieler am Ende kein Geld bekommt. Ich habe versucht ein Weg zu finden wie man das hinkriegen kann, recht lange rumexperementiert aber am Ende hat alles geklappt. Hauptidee stammt von diesem Topik: https://forum.cfx.re/t/fix-bug-with-truckersjob-money/11444
Wenn ihr ein Gameserver mit schneller FiveM Installation braucht, könnt hier reinschauen:
https://zap-hosting.com/rpscripts
in truckerjob.lua, muss man in der Zeile 203 :
MISSION.getMoney()
durch
TriggerServerEvent(‘truckerJob:success’,currentMission[4])
ersetzen
und in server.lua sollte man folgendes hinzufügen :
RegisterServerEvent('truckerJob:success')
AddEventHandler('truckerJob:success', function(price)
print("Player ID " ..source)
-- Get the players money amount
TriggerEvent('es:getPlayerFromId', source, function(user)
total = price;
-- update player money amount
user.addMoney((total))
end)
end)
#fivem #rpscripts #free #gtav
Other Videos By RP Scripts
Other Statistics
Grand Theft Auto V Statistics For RP Scripts
There are 6,029,127 views in 322 videos for Grand Theft Auto V. The game makes up 13 hours of published video on his channel, roughly 97.24% of Grand Theft Auto V content that RP Scripts has uploaded to YouTube.