Motar2k

Members
  • Content Count

    33
  • Joined

  • Last visited

Community Reputation

5 Neutral

About Motar2k

  • Rank
    Rat

Recent Profile Visitors

143 profile views
  1. https://community.multitheftauto.com/index.php?p=resources&s=details&id=15160 https://community.multitheftauto.com/index.php?p=resources&s=details&id=14932 https://community.multitheftauto.com/index.php?p=resources&s=details&id=14936 https://community.multitheftauto.com/index.php?p=resources&s=details&id=14939 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 https://community.multitheftauto.com/index.php?p=resources&s=details&id=11231
  10. https://community.multitheftauto.com/?p=resources&s=details&id=16529 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)