PatrykAdam

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About PatrykAdam

  • Rank
    Vic

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. function spoilernyit() local theVeh = getPedOccupiedVehicle( localPlayer ) if getElementModel(theVeh) == 502 then local sX, sY, sZ = getVehicleComponentPosition(theVeh, "movspoiler_24.0_5200") if sZ < 0.6 then setVehicleComponentPosition(theVeh, "movspoiler_24.0_5200", sX, sY-0.004, sZ+0.005) elseif sZ > 0.45 then setVehicleComponentPosition(theVeh, "movspoiler_24.0_5200", sX, sY+0.008, sZ-0.01) end end end bindKey ( "Num_5", "down" , spoilernyit)
  2. function spoilernyit() local theVeh = getPedOccupiedVehicle( localPlayer ) if getElementModel(theVeh) == 502 then local sX, sY, sZ = getVehicleComponentPosition(theVeh, "movspoiler_24.0_5200") if sZ < 0.6 then setVehicleComponentPosition(theVeh, "movspoiler_24.0_5200", sX, sY-0.004, sZ+0.005) end elseif sZ > 0.45 then setVehicleComponentPosition(theVeh, "movspoiler_24.0_5200", sX, sY+0.008, sZ-0.01) end end end bindKey ( "num_5", "down" , spoilernyit)
  3. Hello, I have been writing gamemode for a long time, everything that is important (information about the vehicle, player, object) is stored on the server side in the table. My question is: what is safer and more optimal? Variables saved on the server side in the table and called to the client by events or elementData?