#Installation#
As always, update your citmp-server.yml and add
`- MissionText
TruckerJob`
below AutoStartResources:
changelog#
Iâll keep updating my GitHub for every project I am making.
[details=Summary]
#v0.22
guarantee that trailer and truck is loaded, before spawn
small bugfixes
#v0.21
missiontext added
make sure you have MissionText activated!
#v0.20
refactored code
itâs working now, haha
if arrived the destination, you can detach the trailer and gain money (mission complete)
no hardcoded locations (only in the very begining)
#v0.10
spawn trucks
spawn trailers via menu
markers are visible
markers are getting invisible[/details]
Here is some code for truckerjob.lua. You have to find the section and add the code like this
âtext for mission
local text1 = false
local text2 = false
âBlips
local Blip = {}
Citizen.CreateThread(function()
local blip = AddBlipForCoord(-7.100, -0.300, 73.077)
SetBlipSprite(blip, 67)
SetBlipDisplay(blip, 3)
end)
âfocus button color
local r = 0
local g= 128
local b = 192
local alpha = 200
EDIT*
Fixed the code so it works now
The blip number 67 is not the right one, dont know the right number fot the truck blip.
SetBlipDisplay 3 is for map, 4 is map and mini map
Same here if you have a controller connected itâs up and down on the dpad but itâs super sensitive also I think only job 1 of each option works as the others donât give green line to drop off point