• Content Count

  • Joined

  • Last visited

Community Reputation

5 Neutral

About Motar2k

  • Rank

Recent Profile Visitors

143 profile views
  1. Delete please.
  2. I don't know the system of resource try replace sprint for jump
  3. --SAVING POSITION IN TABLE local Blip_Pos = { --[ID] = {x,y,z} [1] = {123,123,123}, [2] = {0,0,0}, } --GETTING RANDOM POSITION local lucky = math.random(#Blip_Pos) local x,y,z = Blip_Pos[lucky][1], Blip_Pos[lucky][2], Blip_Pos[lucky][3] --Function to create a blip createBlip --Function to create a Marker createMarker --Event to detect when they reach the blip onMarkerHit --Function to destroy marker and blip destroyElement
  4. ~= means different from if is a condition if player ~= localPlayer then means If the player is different from localPlayer If you need help, don't hesitate to send me a message
  5. @Artyom888 for i, player in ipairs(getElementsByType("player")) do --player - localPlayer if player ~= localPlayer then table.insert(playersList, player) end end
  6. So that problem doesn't have to happen. Try changing the name of the variables and change the size of marker or add more Z position, Apparently it does not detect the collision
  7. @hackermagus You have other function called MarketHit?
  8. You need to declare the table in which you will store the data. interiors = {}
  9. Motar2k

    email script

    @slapz0r Check this
  10. Text animation Point animation Wordrap
  11. I don't see any errors. Try this setElementRotation(NCP,0,0,rotZ+10)
  12. local NPC = createPed(124,0,0,5) local screenWidth, screenHeight = guiGetScreenSize() local range = 15 function NPCnametag() local x,y,z = getPedBonePosition(NPC,6) local px,py,pz = getElementPosition(localPlayer) if getDistanceBetweenPoints3D(x,y,z,px,py,pz) <= range then local sx,sy = getScreenFromWorldPosition(x,y,z) if sx then dxDrawText("Bob",sx,sy,sx,sy,tocolor ( 255, 255, 0, 255 ), 2,"sans") end end end function HandleTheRendering() addEventHandler("onClientRender",getRootElement(), NPCnametag) end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)