Jump to content

RekZ

Members
  • Content Count

    291
  • Joined

  • Last visited

Community Reputation

10 Decent

About RekZ

  • Rank
    Pee-Wee
  • Birthday 28/04/1995

Details

  • Gang
    Street Fighter Racer
  • Location
    Spain
  • Occupation
    Student
  • Interests
    Cosas Nazis :3

Recent Profile Visitors

1,684 profile views
  1. Spawn a hoverboard! Command : /hoverboard left shift for jump Add: Custom Animation. Custom Model. Hover Jump. Remove when leave the vehicle. Replace the Faggio. (Model and Animation arent mine) Link Community Resource Download YouTube Video
  2. i cant help you if you dont help me to do it.. i do what you said maybe you dont restart the resource or dont put the script in the correct place i cant install the resource for you, sorry. --- A part of the post was hidden, please don't go to the extremes (Tut)
  3. I think i dont known what you want jajaja, This is what you want ? (see the video xd) Video
  4. I test it whit my users and work fine like you want, send the code where you are working
  5. Because is a table you cant use local in the table, remove it xd in my last code is fine, i test the code now in my server and work good local table = {} -- BAD table = {} -- good :v
  6. Ups i see my error now creados = {} function getVehicleInUse(veh) local user = 0 for seat, player in pairs(getVehicleOccupants(veh)) do user = user + 1 end return (user or 0) end function createVehicleForPlayer(thePlayer, command, model) if tonumber(model) then if not isPedInVehicle (thePlayer) then if creados[thePlayer] == nil then local x, y, z = getElementPosition(thePlayer) creados[thePlayer] = nil creados[thePlayer] = createVehicle( model, x+5, y, z) warpPedIntoVehicle(thePlayer, creados[thePlayer]) else if getVehicleInUse(creados[thePlayer]) == 0
  7. I'm not sure if this can help you i dont test it function getVehicleInUse(veh) local user = 0 for seat, player in pairs(getVehicleOccupants(veh)) do user = user + 1 end return (user or 0) end function createVehicleForPlayer(thePlayer, command, model) if not isPedInVehicle (thePlayer) then if creados[thePlayer] == nil then local x, y, z = getElementPosition(thePlayer) creados[thePlayer] = nil creados[thePlayer] = createVehicle( model, x+5, y, z) warpPedIntoVehicle(thePlayer, creados[thePlayer]) else if getVehicleInUse(creados[thePlayer]) > 0 then destroyEl
  8. Soo you want to create the car and if there is someone inside the car stop the command ?
  9. Maybe this can help you function createVehicleForPlayer(thePlayer, command, model) if not isPedInVehicle (thePlayer) then if creados[thePlayer] == nil then local x, y, z = getElementPosition(thePlayer) creados[thePlayer] = nil creados[thePlayer] = createVehicle( model, x+5, y, z) warpPedIntoVehicle(thePlayer, creados[thePlayer]) else destroyElement(creados[thePlayer]) local x, y, z = getElementPosition(thePlayer) creados[thePlayer] = nil creados[thePlayer] = createVehicle( model, x+5, y, z) warpPedIntoVehicle(thePlayer, creados[thePlayer]) end end end add
  10. All the chat system is Server side for what i known, why you dont get the chat in the server side ? Sending the client's information to the server is an inefficient in this case i think.
  11. Put this in to a client side lua local alpha = 255 bindKey ( "aim_weapon", "both", function ( _, state ) if getPedWeaponSlot(localPlayer) == 6 or getPedWeaponSlot(localPlayer) == 5 then if ( state == "down" ) then alpha = 0 elseif ( state == "up" ) then alpha = 255 end if getPedWeapon(localPlayer) == 34 then for _, v in ipairs ( getElementsByType("object",resourceRoot,true) ) do if isElementAttachedToBone ( v ) then if getPedWeaponSlot (localPlayer) == 6 then setElementAlpha ( v, alpha ) end end end end end end )
  12. local sW,sH = guiGetScreenSize() -- Get Windows Resolution dont need to be render function onClientRender () if (getPedWeapon(localPlayer) == 34) then if ((getPedTask(localPlayer, "secondary", 0) == "TASK_SIMPLE_USE_GUN") and getPedControlState("aim_weapon")) then if isPlayerHudComponentVisible("crosshair") then setPlayerHudComponentVisible("crosshair",false) end dxDrawImage(0, 0, sW, sH, "crosshair.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) else if not isPlayerHudComponentVisible("crosshair") then setPlayerHudComponentVisible("crosshair",true) end end
  13. For what i see in others servers, people use this to create a new crossair and change it when the player want function onClientRender () if (getPedWeapon(localPlayer) == 34) then if ((getPedTask(localPlayer, "secondary", 0) == "TASK_SIMPLE_USE_GUN") and getPedControlState("aim_weapon")) then local sW,sH = guiGetScreenSize() dxDrawImage(0, 0, sW, sH, "crosshair.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end end end addEventHandler("onClientRender",root,onClientRender)
  14. Server Side function onPlayerSpawn() if isElement(source) then -- Source here is the player if getTeamName(getPlayerTeam(source)) == "Red Team" then -- Team Name giveWeapon(source, 31, 500, true) -- Weapon elseif getTeamName(getPlayerTeam(source)) == "Blue Team" then -- Team Name giveWeapon(source, 30, 500, true) -- Weapon end end end addEventHandler("onPlayerSpawn", root, onPlayerSpawn)
  15. This resource will make players who are in a different team give headshot to each other, but if they are from the same team nothing will happen. Server.Lua function MakePlayerHeadshot( attacker, weapon, bodypart, loss ) if isElement(attacker) then if getElementType ( attacker ) == "player" then if getPlayerTeam( source ) ~= getPlayerTeam( attacker ) then if bodypart == 9 then triggerEvent( "onPlayerHeadshot", source, attacker, weapon, loss ) setPedHeadless ( source, true ) killPed( source, attacker, weapon, bodypart ) setTimer( BackUp, 900, 1, source )
×
×
  • Create New...