Jump to content

Skarbonke

Members
  • Content Count

    57
  • Joined

  • Last visited

Community Reputation

7 Neutral

About Skarbonke

  • Rank
    Snitch
  • Birthday 05/04/2000

Details

  • Gang
    My Tactical Team
  • Location
    Lithuania
  • Occupation
    FreeRoam
  • Interests
    BLACKROOM-English Freeroam

Recent Profile Visitors

799 profile views
  1. Thank you, it worked! <3
  2. function addKeyInBlinkers() if (not isKeyBound(player, ",")) and (not isKeyBound(player, ".")) then bindKey(player,",", "down", "lleft") bindKey(player,".", "down", "lright") bindKey(player,"/", "down", "warn") end end addEventHandler("onResourceStart", resourceRoot, addKeyInBlinkers) The Loop through all players part I really really don't get...
  3. thank you for the replay, but it doesn't work or I do something wrong ;/
  4. Hey guys! Skarbonke here, need some help on binding this "blinker" script on a <,> and / idk why it isin't working, please help. It should work when you press the button, and when you press it again it stops blinking. -- Global data and pointers toggler = { } dtype = { } syncTimer = { } currHeadLightColor = {{ }} function isVehicleBlinking( vehicle) if currHeadLightColor[vehicle] then return true else return false end end -- Toggling lights function toggleLights( veh ) if isElement( veh ) then setVehicleOverrideLights( veh, 2 ) if toggler[veh] == 1
  5. Yeah, you should do it, I really really like it, but the fact when u mark it it's green I think that's some bull:~, you should just put a marker just to see it, cuz now u just can't really get the real colors of the object ;x
  6. local vehicleBlipRoot = createElement("vehicleBlipRoot", "vehicleBlipRoot") --This function creates a blip for all currently streamed-in vehicles when the resource starts. local function resourceStart() for _, vehicle in ipairs(getElementsByType("vehicle"), root, true) do if vehicle ~= getPedOccupiedVehicle(localPlayer) then local blip = createBlipAttachedTo(vehicle, 0, 1, 150, 150, 150, 255, -10, 100) setElementParent(blip, vehicleBlipRoot) end end end addEventHandler("onClientResourceStart", root, resourceStart) --This function destroys a vehicle's blip when it streams out. loc
  7. Hello, I want that this resource would show the blips in the minimap, but not in the F11 or just cars that are close, cuz now it's showin all the cars, and it's laggy local vehicleBlipRoot = createElement("vehicleBlipRoot", "vehicleBlipRoot") --This function creates a blip for all currently streamed-in vehicles when the resource starts. local function resourceStart() for _, vehicle in ipairs(getElementsByType("vehicle"), root, true) do if vehicle ~= getPedOccupiedVehicle(localPlayer) then local blip = createBlipAttachedTo(vehicle, 0, 1, 150, 150, 150, 255, -10, 150
  8. Thank u, it worked :3
  9. addEvent "onPlayerHeadshot" addEventHandler("onPlayerDamage", getRootElement(), function (attacker, weapon, bodypart, loss) if bodypart == 9 then if then ( getPlayerWeapon(attacker) == 24 )² setElementHealth(source -50) end end end ) I get an error that says:5: unexpected symbol near "then" , and i can't get it right
  10. I don't need 1 shot kill
  11. local BodyPart = Head if bodypart == BodyPart then if ( getPlayerWeapon(theAttacker) == 24 ) then setElementHealth(theVectim, 50 ) end end That gave me an error: 3: Bad argument "getPlayerWeapon"[expected ped at argument 1, got nil]
  12. So hey there, it's me again :D, how to make a guns (ex. deagle, sniper) damage, like if you hit the head you do 50 damage, if you hit in the legs you do 20 damage, chest 30 damage, arms 10 damage ?
  13. So hey, I need help with cars, that respawned and got random colors, I just got the respawned part, but I can't get the random color to work, it sould get random color on the respawn, but it never get's it
×
×
  • Create New...