CitizenMP server is discontinued. Use FX server.
then wheres the autorun command kept as the mod need to have a section written in their
can anyone tell me where the file is i need to add that thing to as citmap doesnt exist and fxserver doesnt have a citmap fle is there a new file i have to add code to so the new citmap file and where would it be loacted
I cant get it to work for some reason
thatâs great if youâre using âvrpâ, what about the ppl that arenât. The job works for me, I get paid at the end, but it doesnât register in the bank.
how to make this script work ? no money insert in playerâs wallet
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)
Not the problem, itâs their just doesnât register in banking.
Hello @schneehaze and good job, this script is very good!
I just wanna ask 3 little things that I canât do by myself:
1- How can I set the vehicles (MISSION.truck and MISSION.trailer) spawn rotation? I mean I wanna change the direction theyâre looking at when spawned.
SOLVED editing this in truckerjob.lua:
--line 25
--heading + = sx
--heading - = dx
local TruckingCompany = {}
TruckingCompany[0] = {["x"] = 66.8037,["y"] = 120.9773, ["z"] = 79.1001}
local TruckingTruck = {}
TruckingTruck[0] = {["x"] = 66.8037, ["y"] = 120.9773, ["z"] = 79.1001, ["heading"] = 520.0}
local TruckingTrailer = {}
TruckingTrailer[0] = {["x"] = 79.2091, ["y"] = 97.2839, ["z"] = 78.8477, ["heading"] = 430.0}
--line 279
MISSION.truck = CreateVehicle(MISSION.hashTruck, TruckingTruck[0]["x"], TruckingTruck[0]["y"], TruckingTruck[0]["z"], TruckingTruck[0]["heading"], 0.0, true, false)
2- I get this notification when I get payment, where does it come from? I canât find it to disable/translate.
SOLVED: File to translate is the server.lua.
3- I added this after line 210 of truckerjob.lua, it just notify (in italian) the player that mission is over if truck or trailer are destroyed. It works but I get one of those missiontext when I leave the truck at mission end too. How can I fix this?
if ( IsEntityDead(MISSION.truck) ) then
TriggerEvent("mt:missiontext", "Missione fallita: camion distrutto.", 15000)
MISSION.removeMarker()
clear()
end
if ( IsEntityDead(MISSION.trailer) ) then
TriggerEvent("mt:missiontext", "Missione fallita: rimorchio distrutto.", 15000)
MISSION.removeMarker()
clear()
end
Thanks everyone who will answer!
is this work with esx ?
Anyway to make the truck delete when job complete
Hello! I would like to know how I can modify the code so that it is possible to use a truck to pick up the parcels! Thankful! Email: vieira08davi38@gmail.com
Where can I change the button? I want to change the ânum_+â to âEâ. Because the players donât know how can they get the truck.
I ask the same.
Would be awesome if it went well with all the other ESX jobs too!
There is a problem I have in
vrp_TruckerJob
It does not appear on the map
It has another version that you can not get money for
What is the best version?
thank you
Here
âkey controlling
if(IsControlPressed(1, Keys[âEâ]) and GUI.showMenu == false) then
dont know if any got it fix not paying but i got it to work
change line 203 in truckerjob.lua with
TriggerServerEvent(âtruckerJob:successâ,currentMission[4])
add to server.lua
RegisterServerEvent(âtruckerJob:successâ)
AddEventHandler(âtruckerJob:successâ,function(propina)
TriggerEvent(âes:getPlayerFromIdâ,source, function(user)
user.addMoney((propina))
end)
end
Still , this error happened to me when i was running a VPN over my internet connection, so since then iâm using Cooltechzone.com and feeling good.
Perfeito! funciono corretamente !
where and how do you put the mission text?
just add to resources and add to server.cfg to start it