Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

12 Decent

About Gaimo

  • Rank


  • Location

Recent Profile Visitors

792 profile views
  1. My voice resource is this https://community.multitheftauto.com/index.php?p=resources&s=details&id=15958 I couldn't test it, but does it work? CLIENT-SIDE: addEventHandler("onClientElementStreamIn", root, function () if source:getType() == "player" then if getElementData(source, "call") then return end triggerServerEvent("proximity-voice::broadcastUpdate", localPlayer, getElementsByType("player", root, true)) end end ) addEventHandler("onClientElementStreamOut", root, function () if source:getType() == "player"
  2. A simple vehicle alarm system. I accept suggestions for improvements. Demo: NOTE: It is only possible to open the dashboard after you leave a vehicle as a driver. [Download] UPDATE #1 - Fixed an issue that the menu was not open.
  3. I have a suggestion, don't delete the data immediately when the player disconnects, my system to save the player's position is only activated when the player disconnects and I lose the player's id.
  4. I had problem with this shader, there is even a message from me in this post. shader line 13,9 -> sampler Sampler0 = sampler_state
  5. I want to make a setObjectColor function.
  6. I tried to make a normal replacement like any model but it didn't work.
  7. Code: local obj local shader = dxCreateShader("shader.fx", 0, 0, false) function positioning() local x,y,z = getPositionFromElementOffset(localPlayer, 0, 1.2, 0) local rx,ry,rz = getElementRotation(localPlayer) setElementPosition(obj, x,y,z) setElementRotation(obj, rx,ry,rz) end function setItemPosition(button, press) if button == "mouse1" and press then setElementAlpha(obj, 255) setElementCollisionsEnabled(obj, true) engineApplyShaderToWorldTexture(shader, "crate128") dxSetShaderValue(shader, "gColor", 255, 255, 255,
  8. I think the easiest thing would be to add a ped with alpha 0 and remove it when the player enters. I don't know if I would know how to do this reverse engineering.
  9. Really, I will try to do a test with a settimer, and return.
  10. addEventHandler("onClientVehicleStartExit", getRootElement(), function() local x,y,z = getVehicleComponentRotation(source, "wheel_lf_dummy") local x1,y1,z1 = getVehicleComponentRotation(source, "wheel_rf_dummy") outputChatBox(x) -- work print(setVehicleComponentRotation(source, "wheel_lf_dummy", x, y, z) ) -- true setVehicleComponentRotation(source, "wheel_rf_dummy", x1, y1, z1) end) The script has no error. Returns the rotation of the wheel, returns true in the setVehicleComponentRotation but the wheel is not rotated. What is happening? Result I'm looking for
  11. Estou editando um script de primeira pessoa, mas tem um problema, quando o jogador mira em terceira pessoa (padrão do jogo) a arma acompanha a direção de onde esta a mira e se atirar a munição será disparada naquela direção, mas com o modo primeira pessoa, quando o jogador mira a arma vai apontar para frente e não importa a direção que você esta apontando com a câmera o tiro vai ir na direção que foi clicado para mirar, qual função eu devo usar para atualizar a direção igual acontece em terceira pessoa ? O mais próximo que eu consegui foi atualizar a rotação do personagem, mas só funciona
  12. Can't use the same txd? it is used in both dff.
  13. I have a problem, I can't read the xml file. local xml = xmlLoadFile("meta.xml", true) -- return false How can I read the meta.xml file?
  14. aclrequest allow pdownloader all - OK reloadacl - OK meta.xml <meta> <pDownloader>true</pDownloader> <!-- STEP 2 - enable pDownloader --> <!-- script file isn't needed --> <!-- STEP 3 - disable downloading with download="false" attribute --> <!-- and set model ID for the model-loader with model="ID" attribute--> <file src="files/city.txd" download="false" model="3048" /> <file src="files/Land_areia.dff" download="false" model="3048" /> <file src="files/Land_areia.col" download="false"
  • Create New...