Jump to content

NeXuS™

Retired Staff
  • Posts

    1,134
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by NeXuS™

  1. If you wish, we can discuss about a price, so I'll write a race script for ya. PM me if you are interested.
  2. You'll have to use engineApplyShaderToWorldTexture there is now no such function as engineApplyShaderToWorldModel. You'll have to get the texture's name which you would like to change (eg. vehiclegrunge256). There is a good way to find out the texture's name tho, download this. After you got the texture's name, you can get the element you wish to replace, and just do engineApplyShaderToWorldTexture(shaderElement, textureName, elementVar) and it's done. EZPZ.
  3. Ohh, just in the air? For the server side. Later on, you can use the customNames table to set their custom name back after respawn. customNames = {} addCommandHandler("customname", function(thePlayer, cmdName, customName) local cVeh = getPedOccupiedVehicle(thePlayer) setElementData(cVeh, "customName", customName) customNames[cVeh] = customName end) For the client side. addEventHandler("onClientRender", getRootElement(), function() local pX, pY, pZ = getElementPosition(localPlayer) for i, k in ipairs(getElementsByType("vehicle")) do if getElementData(k, "customName") then local cX, cY, cZ = getElementPosition(k) if getDistanceBetweenPoints3D(cX, cY, cZ, pX, pY, pZ) <= 20 then if isLineOfSightClear(cX, cY, cZ+1, pX, pY, pZ+1) then local cX, cY = getScreenFromWorldPosition(cX, cY, cZ+1) if cX and cY then dxDrawText(getElementData(k, "customName"), cX, cY) end end end end end) This one should work just fine. Not tested tho. Give me a feedback of it. Still working on the texture one.
  4. You can use downloadFile for it.
  5. Just see the edited post above. Do that one which I edited in.
  6. Try not to download all the files at the same time.
  7. Change line nr. 2 to if (getElementData(localPlayer,"pLevel") or 0) then Btw, I dont understand that line at all. You could just do setTimer(function() setElementData(localPlayer, "pLevel", (getElementData(localPlayer, "pLevel") or 0) + 1) outputChatBox(getElementData(localPlayer, "pLevel")) end, 100, 0)
  8. Maybe give us the error?
  9. Working on a texture script which would work on every car, that's why it takes a bit of time tho.
  10. NeXuS™

    Help.

    It's already done. Just doing some final things to make sure everything works just as it should.
  11. Working on it right now, gimme a minute.
  12. And it can be done with textures on it, lol.
  13. Yeah, you'll have to use a shader to do the light's reflection.
  14. Is it a modded car, or just the default police car?
  15. Post your code here, and a screenshot of the error.
  16. Try loading all of them in when the client loads in, and just set their visibility.
  17. Did you fix the line I sent you above?
  18. Try this one: local addVehicle = executeSQLQuery("INSERT INTO jarmuslot1 VALUES(?,?,?)", tostring(name), tonumber(id), tonumber(cost))
  19. Still, fix that problem. If that's fixed, and there is a problem, there should be an another error, not with your account name.
  20. You are reassigning the local variable with a new one. local name = getAccountName(account) and function(id,cost,name)
×
×
  • Create New...