-
Posts
1,546 -
Joined
-
Last visited
Everything posted by Dimos7
-
type need be client not server
-
what you trying to do exacly?
- 3 replies
-
- onmakerhit
- on
-
(and 2 more)
Tagged with:
-
dbPoll(dbQuery(db, "SELECT COUNT(Account ) * FROM AllAccTable WHERE acc=?", toJSON(getAccountName(acc))), - 1)
-
local sw, sh = guiGetScreenSize() local x, y = sw/1280, sh/1024 dxDrawImage(x * 0.2891, y * 0.2891, x * 0.4227, y * 0.4229, ":electric/circuitBoard.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
-
at rectangle 3 and 4 argument is weight and height at text 3 and 4 is right and bottom aligns
-
put the code used not onlky a part aslos us the icon with <> and place your code there
-
check the size of blips on your script and make sure
-
addEventHandler("onPlayerDamage", root, function (attacker, weapon, bodypart, loss) setElementFrozen(sure, true) isVehicleBlown end) check if attacker is player and weapons are you want to freeze him also check if attacker is vehicle
-
What do you mean add like upgrade?
-
addCommandHandler("fixveh", function(player), false, false if isPedInVehicle(player) then local veh = getPedOccupiedVehicle(player) fixVehicle(veh) end end)
-
You want to not moe when get damage of a expolsion?
-
Any errors or warnings?
-
addEventHandler("onClientPlayerJoin", root, function() if isTransferBoxActive() ==true then fadeCamera(false) end end)
-
addEventHandler("onClientPlayerDamage", root, function(attacker, weapon, bodypart) if bodypart ==9 then playSound end end)
-
local trunkDoor = -- put true or false if you want first time open put false function toggleTrunk(player) if isPedInVehicle(player) then - check player is in a car. local car = getPedOccupiedVehicle(player) -- takes the car the player is inside. if turnkDoor then -- put here trunk door and check if it false for open it or close it setVehicleDoorOpenRatio(car) else setVehicleDoorOpenRatio(car) end end end addCommandHandler("trunk", toggleTrunk)
-
that is the functions you need getPedOccupiedVehicle setVehicleDoorState addCommandHandler
-
dbExec(connection, "INSERT INTO table_name (the values you want change) VALUES(?,?,? )", "1", "Bob", "What\'s the time" )
- 1 reply
-
- question mark
- dbexec
-
(and 2 more)
Tagged with:
-
addEventHandler("onClientRender", root, function() local cx, cy, cz = getCameraMatrix() local px, py, pz = getElementPosition(localPlayer) if getElementData(localPlayer, "afk_state") == afk then dist = math.sqrt(px-cx)^2 + (py-cy)^2 + (pz-cz)^2) if dist < 30 then if isLineOfSightClear(px, py, pz, cx, cy, cz, true, false, false, true, false, false, true) local bx, by, bz = getPedBonePosition(localPlayer, 6) local x, y = getScreenFromWorldPosition(bx, by, bz+0.3) if x then dxDrawText("AFK", x, y, x, y tocolor(255, 255, 255, 255), 0.085+(15-dist)*0.02, "pricedown", "center", "center") end end end end end)
-
addEventHandler("onClientRender", root, function() local cx, cy, cz = getCameraMatrix() local px, py, pz = getElementPosition(localPlayer) if getElementData(localPlayer, "afk_state") == afk then dist = math.squrt(px-cx)^2 + (py-cy)^2 + (pz-cz)^2) if dist < 30 then if isLineOfSightClear(px, py, pz, cx, cy, cz, true, false, false, true, false, false, true) local bx, by, bz = getPedBonePosition(localPlayer, 6) local x, y = getScreenFromWorldPosition(bx, by, bz+0.3) if x then dxDrawText("AFK", x, y, x, y tocolor(255, 255, 255, 255), 0.085+(15-dist)*0.02, "pricedown", "center", "center") end end end end end)
-
Try put the aplha on dxtext 255 inside the tocolor