Jump to content

RekZ

Members
  • Posts

    343
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by RekZ

  1. RekZ

    Loading mods

    I wanted to ask about some advice or some efficient way to reduce the impact of mod loading on the processor and hard drive for the client (cars, weapons, skins),
  2. function cameraFireing(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if isElement(hitElement) then if (getElementType(hitElement) == "player" and hitElement ~= source) then if getElementData(source, "char.inMarkerZone") then triggerServerEvent("sendGroupMessage", root,"#ffffffThe camera: #ca5454("..getElementData(hitElement,"char.MarkerZoneName")..") #ffffffdetected shots.") end end end end addEventHandler("onClientPlayerWeaponFire", root, cameraFireing)
  3. I dont think it is legal to sell models of other games created by their own design team but more foolish should be who buys it.
  4. Esta parte del foto en teoria es en ingles :L deberias probar a hacer la pregunta en ingles o preguntar en este lugar del foro. https://forum.multitheftauto.com/forum/166-spanish-español/
  5. RekZ

    Password Server Error ?

    Here is the link https://upload.mtasa.com/u/655087931/server.log_
  6. RekZ

    Password Server Error ?

    I have some new information, the error persists, but I have been able to observe the players who try to connect with that error, they give an error in the console with the message "Client version is below minimum"
  7. RekZ

    Password Server Error ?

    I'm formatting the server right now that's why the ports are closed , since the error occurred I didnt edit any configuration, and according to that user who sent me the photo, when he tries to connect he receives the error message informing that the server is off. i my server is a dedicate server in OVH and I have 2 others that work correctly and others games that use others ports, the only thing I can tell you (I Think) this error occurred after the top position was finalized.
  8. tendrias que cambiar sasori por player no ? :L tambien vendria bien saber que evento usas, lo digo porque estas usando "sasori" como variable del jugador pero tambien "player" para obtener la posicion del jugador que no se ve afectado.
  9. RekZ

    Password Server Error ?

    Thats how some players see the server, i change the server name too. i dont known what i can do now :L im loosing players every day.
  10. the " borderless window mode" looks like fullscreen mode but more efficient
  11. RekZ

    Password Server Error ?

    158.69.122.197:2001
  12. function drawSpeedo() if ( getCameraTarget() or isPedDead(localPlayer) ) then Spect = getCameraTarget() else Spect = getPedOccupiedVehicle(localPlayer) end if isElement(Spect) and getElementType(Spect) == "vehicle" then specHealth = getElementHealth(Spect) sHealth = (math.max(specHealth - 250, 0)/750)*100 colorR = sHealth > 50 and (255/100)*(100 - sHealth*2) + 255 or 255 colorG = sHealth > 50 and 255 or (255/100)*(sHealth*2) sx, sy, sz = getElementVelocity (Spect) spectSpeed = math.floor(((sx^2 + sy^2 + sz^2)^(0.5))*180) dxDrawText(spectSpeed.." km/h", (1680/1920)*sX, (940/1080)*sY, (1804/1920)*sX, (966/1080)*sY, tocolor(255, 255, 255, 255), (1/1920)*sX, font, "center", "top", false, false, false, false, false) dxDrawRectangle((1620/1920)*sX, (990/1080)*sY, (((specHealth/10)*2.5)/1920)*sX, (7/1080)*sY, tocolor(colorR, colorG, 0, 255), false) dxDrawCircle (((1620+(specHealth/10)*2.5)/1920)*sX, (993/1080)*sY, 7, 0, 360, tocolor(colorR, colorG, 0, 255), tocolor(colorR, colorG, 0, 255), 32, 1, false) if getVehicleUpgradeOnSlot(Spect,8) then nosLevel = ( (getVehicleNitroLevel(Spect) or 0) *100 ) nosColor = (isVehicleNitroActivated(Spect) and colorTable[ "using" ]) or (isVehicleNitroRecharging(Spect) and (colorTable[ "chargin" ] or colorTable[ "stock" ]) ) --nosColor = tocolor(255, 255, 255, 255) dxDrawRectangle((1620/1920)*sX, (1020/1080)*sY, (((nosLevel*250)/100)/1920)*sX, (7/1080)*sY, nosColor, false) dxDrawCircle (((1620+(nosLevel*2.5))/1920)*sX, (1023/1080)*sY, 7, 0, 360, nosColor, nosColor, 32, 1, false) end end end addEventHandler("onClientRender", getRootElement(), drawSpeedo) Sorry i remember the race dont spect the player, spect the vehicle now yes is functional
  13. function drawSpeedo() if isPedDead(localPlayer) then Player = getCameraTarget() else Player = localPlayer end if isElement(Player) then if isPedInVehicle(Player) then veh = getPedOccupiedVehicle(Player) if isElement(veh) then specHealth = getElementHealth(veh) sHealth = (math.max(specHealth - 250, 0)/750)*100 colorR = sHealth > 50 and (255/100)*(100 - sHealth*2) + 255 or 255 colorG = sHealth > 50 and 255 or (255/100)*(sHealth*2) sx, sy, sz = getElementVelocity (veh) spectSpeed = math.floor(((sx^2 + sy^2 + sz^2)^(0.5))*180) dxDrawText(spectSpeed.." km/h", (1680/1920)*sX, (940/1080)*sY, (1804/1920)*sX, (966/1080)*sY, tocolor(255, 255, 255, 255), (1/1920)*sX, font, "center", "top", false, false, false, false, false) dxDrawRectangle((1620/1920)*sX, (990/1080)*sY, (((specHealth/10)*2.5)/1920)*sX, (7/1080)*sY, tocolor(colorR, colorG, 0, 255), false) dxDrawCircle (((1620+(specHealth/10)*2.5)/1920)*sX, (993/1080)*sY, 7, 0, 360, tocolor(colorR, colorG, 0, 255), tocolor(colorR, colorG, 0, 255), 32, 1, false) if getVehicleUpgradeOnSlot(veh, 8 ) then nosLevel = ( (getVehicleNitroLevel(veh) or 0) *100 ) nosColor = (isVehicleNitroActivated(veh) and colorTable[ "using" ]) or (isVehicleNitroRecharging(veh) and (colorTable[ "chargin" ] or colorTable[ "stock" ]) ) --nosColor = tocolor(255, 255, 255, 255) dxDrawRectangle((1620/1920)*sX, (1020/1080)*sY, (((nosLevel*250)/100)/1920)*sX, (7/1080)*sY, nosColor, false) dxDrawCircle (((1620+(nosLevel*2.5))/1920)*sX, (1023/1080)*sY, 7, 0, 360, nosColor, nosColor, 32, 1, false) end end end end end addEventHandler("onClientRender", root, drawSpeedo) Test it now, for me work fine, i test it in my server
  14. function drawSpeedo() if isPedDead(localPlayer) then Player = getCameraTarget () else Player = localPlayer end if isPedInVehicle(Player) then veh = getPedOccupiedVehicle(Player) if isElement(veh) then specHealth = getElementHealth(veh) sHealth = (math.max(specHealth - 250, 0)/750)*100 colorR = sHealth > 50 and (255/100)*(100 - sHealth*2) + 255 or 255 colorG = sHealth > 50 and 255 or (255/100)*(sHealth*2) sx, sy, sz = getElementVelocity (veh) spectSpeed = math.floor(((sx^2 + sy^2 + sz^2)^(0.5))*180) dxDrawText(spectSpeed.." km/h", (1680/1920)*sX, (940/1080)*sY, (1804/1920)*sX, (966/1080)*sY, tocolor(255, 255, 255, 255), (1/1920)*sX, font, "center", "top", false, false, false, false, false) dxDrawRectangle((1620/1920)*sX, (990/1080)*sY, (((specHealth/10)*2.5)/1920)*sX, (7/1080)*sY, tocolor(colorR, colorG, 0, 255), false) dxDrawCircle (((1620+(specHealth/10)*2.5)/1920)*sX, (993/1080)*sY, 7, 0, 360, tocolor(colorR, colorG, 0, 255), tocolor(colorR, colorG, 0, 255), 32, 1, false) if getVehicleUpgradeOnSlot(veh, 8 ) then nosLevel = getVehicleNitroLevel(veh)*100 or 0 nosColor = isVehicleNitroActivated(veh) and colorTable[ "using" ] or isVehicleNitroRecharging(veh) and colorTable[ "chargin" ] or colorTable[ "stock" ] dxDrawRectangle((1620/1920)*sX, (1020/1080)*sY, (((nosLevel*250)/100)/1920)*sX, (7/1080)*sY, nosColor, false) dxDrawCircle (((1620+(nosLevel*2.5))/1920)*sX, (1023/1080)*sY, 7, 0, 360, nosColor, nosColor, 32, 1, false) end end end end addEventHandler("onClientRender", root, drawSpeedo) I dont test it but i think is cool
  15. RekZ

    Password Server Error ?

    Is empty, no all players appear blocked, others can connect without problems, but some have that problem that I comment, now I will try to change the name to the server to see if it has any effect.
  16. Many players tell me that they see my server closed (password) but my server isnt blocked, I tried to restart it and restart the dedicated server, what is the problem or what can I do to fix it?
  17. so in theory i can call the client use ProcessLineOfSight and return it to the server, but i will try another efficient way.
  18. i can get the body part where the shot hit using onPlayerWeaponFire ?
  19. Driver2 Link is dead
  20. I have a problem with blocked files, i cant use blocked files for replace model i dont known why but only blocked files give me error >-< i will try all the form you give us to repair my problem thanks :3
  21. RekZ

    Replace Error

    yeah i think that is the firts place but i test many and maaany models but nothing work, maybe there are only compatible with weapon models ?
  22. RekZ

    Replace Error

    Any way to repair the error of the next image? ( You can see how the replaced weapon doesnt charge properly and only appears as a shot ) happens when he replaced a normal mapping model with a weapon ( I clarify that only happens with some weapons )
  23. RekZ

    Lock DFF Error

    Many weapons work, the only weapons that doesnt work are locked, dont known why, but ifthere isnt any solution no problem
  24. RekZ

    Lock DFF Error

    https://www.gtainside.com/en/sanandreas/weapons/115639-crossfire-ak-47-transformer/#comments-399270
×
×
  • Create New...