Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 15/05/23 in all areas

  1. -- Client-side script addCommandHandler("setunit", function(command, unitNumber) -- Check if the unit number is valid (must be a number) if not tonumber(unitNumber) then outputChatBox("Invalid unit number! Please enter a valid number.", 255, 0, 0) return end unitNumber = math.floor(tonumber(unitNumber)) outputChatBox("You have set your unit number to: " .. unitNumber, 0, 255, 0) end)
    1 point
  2. Do you want to always show the player or do something like a trace so it can't know its original position but it knows its previous position use https://wiki.multitheftauto.com/wiki/CreateBlipAttachedTo
    1 point
  3. if it worked and you liked my help, you can give a like in the comment.
    1 point
  4. use https://wiki.multitheftauto.com/wiki/GetElementModel and source addEventHandler("onClientVehicleEnter", root, function(thePed, seat) local vehid = getElementModel(source) local playerskin = getElementModel(localPlayer) if (vehid ~= 596) then return end if (playerskin == 280) then playSound("beep.mp3") outputChatBox("#898c8f<<#2c469cNeXoN Roleplay#898c8f>> #0f5720Sikeress belépés", 255, 255, 255, true) PDMenu = true else playSound("beep.mp3") outputChatBox("#898c8f<<#2c469cNeXoN Roleplay#898c8f>> #0f5720Sikertelen belépés", 255, 255, 255, true) end end)
    1 point
  5. 1 point
×
×
  • Create New...