Jump to content

Kelly003

Members
  • Posts

    23
  • Joined

  • Last visited

Recent Profile Visitors

556 profile views

Kelly003's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. Kelly003

    row

    Kenix I know it, but I don't know what is the function to do it.
  2. Kelly003

    row

    how to do that if no row is selected, nothing is done, and if row 1 is selected, it performs the first function (already written by me) and if we select row 2, it performs the second function?
  3. Kelly003

    radar

    Is there any way to make a radar without textures or to render textures to the radar?
  4. Kelly003

    ghost zone

    When you get into these cuboids, nothing works code: local zones= { {-2411.49, -608.29, 131.62, 18.33, 12.49, 1.92}, {-2430.09, -607.45, 131.56, 5.55, 7.24, 1.90}, } for i,v in ipairs(zones) do createColCuboid(v[1], v[2], v[3], v[4], v[5], v[6]) end addEventHandler("onColShapeHit", zones, function(element) if getElementType(element) == "ped" or getElementType(element) == "player" or getElementType(element) == "vehicle" then if getElementAlpha(element) ~= 255 then setElementAlpha(element, 130) setElementCollisionsEnabled(element, false) end end end) addEventHandler("onColShapeHit", zones, function(element) if getElementType(element) == "ped" or getElementType(element) == "player" or getElementType(element) == "vehicle" then if getElementAlpha(element) ~= 130 then setElementAlpha(element, 255) setElementCollisionsEnabled(element, true) end end end)
  5. I would like to make zones in sf that can be captured while in a criminal organization. I would like it to work so that you need a spray to repaint the graffiti which is repainted 10 seconds and then the zone has a cooldown of 10 minutes not to bother it and every 10 minutes from the zone the organization earns money. I do not know where to start And the person who took over the zone gets $ 500 and the people from this organization who were in the zone that was taken over get $ 250
  6. There is no error and nothing is created
  7. how to do random vehicle creation in loop? i tried like this and it doesn't work: server side local id = { {481}, {462}, {509}, } local points = { {-1980.59,306.16,35.17}, {-1981.31,299.08,35.17}, } for _,v in pairs(points) do createVehicle(math.random(2, #id), v[1], v[2], v[3]) end
  8. I want to do a gunshop and I have a few buttons done, but if I click on the first button, it gives me ak with 60 ammo and if I click on the second button, it gives me a m4 with 120 ammo I want to do a gunshop and I have a few buttons done, but if I click on the first button, it gives me ak with 60 ammo and if I click on the second button, it gives me a m4 with 120 ammo
  9. how to add a weapon via event onClientClick? I know it needs to be done with a server trigger but I don't know how to do it. I want to do so that when I click on a given point, she gives a deal with 60 ammo and if I click on the second point, she gives ak47
  10. Kelly003

    get upgrade

    How to check if there is an upgrade in the car, if it is not, install it, and if it is, do not install it?
  11. I already did it myself, but thanks for the answer anyway
  12. I do a healing system and I checked the amount of cash with me and when you have a certain amount, it takes it from us and gives you hp. The problem is how to check the amount of hp so that it does not take cash unnecessarily when someone has 100% hp. addEventHandler("onClientClick", root, function(btn, state) if btn == 'left' and state == 'down' then if data.open == true then if isMouseInPosition(screenW * 0.4081, screenH * 0.3932, screenW * 0.1846, screenH * 0.0560) then if getElementHealth(localPlayer) ~= 100 then outputChatBox("Your hp is full!") end if getPlayerMoney(localPlayer)<500 then outputChatBox("No money") else takePlayerMoney(500) setElementHealth(localPlayer, 100) outputChatBox("Transaction completed") end end if isMouseInPosition(screenW * 0.6007, screenH * 0.2943, screenW * 0.0176, screenH * 0.0352) then showGUI() end end end
  13. in the loop is supposed to spin
  14. Neither of these work. subject still not spinning
×
×
  • Create New...