Jump to content

itHyperoX

Members
  • Posts

    522
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by itHyperoX

  1. I already fixed it. Found a dff file on the community, downloaded, then attached the "object" to the airdrop.
  2. there is the error. "csg.staff table doesn't exist.
  3. I fixed it with another way.
  4. i fixed it with another way.
  5. Hi, i'm working on an airdrop system, almost everything done. I'm thinking about how can i trigger an effect to the server side? Because we have almost 60 players on the server, and i want that they all can see the smoke. I tried --server: function createSmoke(x, y, z) triggerClientEvent(getRootElement(), "createSmoke", getRootElement(), x, y, z) end addEvent("createSmoke", true) addEventHandler("createSmoke", getRootElement ( ), createSmoke) --client: function smokeCreate(x, y, z) smoke = createEffect("tank_fire", x, y, z, -90, 0, 0) setEffectSpeed(smoke, 4) end addEvent( "createSmoke", true ) addEventHandler( "createSmoke", resourceRoot, smokeCreate)
  6. is that possible to run a command from the server console monitor? If yes, how?
  7. first check that is the player in veh, with if (veh) then end
  8. I can keep register, nothing in debug.
  9. Hi, what's the problem? local disabledKey = { ["!"] = true, ['"'] = true, ["£"] = true, ["$"] = true, ["%"] = true, ["^"] = true, ["&"] = true, ["*"] = true, ["("] = true, [")"] = true, ["_"] = true, ["+"] = true, ["="] = true, ["-"] = true, ["["] = true, ["]"] = true, ["{"] = true, ["}"] = true, [";"] = true, [":"] = true, ["'"] = true, ["@"] = true, ["#"] = true, ["~"] = true, [","] = true, ["<"] = true, ["."] = true, [">"] = true, ["/"] = true, ["?"] = true, ["/"] = true, } local username = guiGetText(gui["username"]) local pw = guiGetText(gui["username"]) if string.find(username, disabledKey[username]) then return outputDebugString("blocked:username") end if string.find(pw, disabledKey[pw]) then return outputDebugString("blocked:pw") end
  10. showBox(player, "info", "hi")
  11. itHyperoX

    Santa Hat

    replace it with 1 object createObject, attachObject, setObjectSize,
  12. createPedFun() local thePed = createPed(0, x,y,z) setElementData(thePed, "ped_ya", true) end addEventHandler -- on ResourceStart function died(ammo, killer, killerWeapon, bodypart) if getElementData(source, "ped_ya") == true then givePlayerMoney(killer, 5000) end end addEventHandler("onPedWasted", root, died) should work
  13. Because that is gui, not dx. password = guiGetText(passwordField) passwordText = string.gsub(password, "%C", "•") dxDrawText(passwordText)
  14. Did you tried set the blip alpha to 0 ?
  15. Thank you, one more question. How can i move the gate ? addEventHandler("onMarkerHit", resourceRoot, function(player) local gate = getTeamGateMarker(source) if (gate and getElementType(player) == "player") then local playerTeam = getPlayerTeam(player) if playerTeam then outputChatBox("team") local teamName = getTeamName(playerTeam) if teamName == gate[3] then moveObject ( theGate, 10000, TeamTable[k][4], TeamTable[k][5], TeamTable[k][6] ) outputChatBox("yee") else outputChatBox("You are not in this team") end else outputChatBox("not in team") end end end)
  16. itHyperoX

    Team Base

    Hi, i'm working on a team base script, i'm stuck, i don't know why is the script is just doing something with the last created stuff in the TeamTable. TeamTable = { {"Kings", 2048.7641601563, 1368.6136474609, 10.671875, 2045, 1368.6136474609, 10.671875, 0, 0, 0}, {"WatoLocoos", 2066.482421875, 1369.6892089844, 10.671875, 2066, 1369.6892089844, 10.671875, 0, 0, 0}, {"Police", 2060, 1369.6892089844, 10.671875, 2020, 1369.6892089844, 10.671875, 0, 0, 0} } counter = 0 addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for k, v in ipairs(TeamTable) do counter = counter + 1 TableTeamName = TeamTable[k][1] theGate = createObject(988, TeamTable[k][2], TeamTable[k][3], TeamTable[k][4], TeamTable[k][8], TeamTable[k][9], TeamTable[k][10]) teamMarker = createMarker(TeamTable[k][2], TeamTable[k][3], TeamTable[k][4] - 2, "cylinder", 5, 255, 0, 0, 150) end outputChatBox("found "..counter.." gate", root) end) addEventHandler("onMarkerHit", root, function(player) if (source == teamMarker and getElementType(player) == "player") then outputChatBox("hit") local playerTeam = getPlayerTeam(player) if playerTeam then outputChatBox("team") local teamName = getTeamName(playerTeam) if teamName == TableTeamName then outputChatBox("yee") else outputChatBox("You are not in this team") end else outputChatBox("not in team") end end end)
  17. if you want that, you should use something like this : if v ~= localPlayer then dxDrawImage end
  18. Yeah, already fixed it, forgot to reply. Thanks @IIYAMA
  19. Thank you, but its keep debugging me "{}" outputChatBox("NewResource loaded: Here is the last resource name which loaded.", source, 255, 255,255,true) -- at here, i want something like this: outputChatBox("New resource loaded: "..newResourceName, source) i hope you understand what i want to do.
  20. Hello, how can i make that, if new resource loaded, its showing me only that, not the old ones? I tried like addCommandHandler("refreshres",function(source) local resources = getResources() for i,v in ipairs(resources) do if getResourceState(v) == "loaded" then end end refreshResources(true) outputChatBox("NewResource loaded: Here is the last resource name which loaded.", source, 255, 255,255,true) end) Anybody can help me please
  21. Hello, how can i made a simple milisecToMinutes function? Something like this: function secondsToMinutes(seconds) local totalSec = tonumber(seconds) if totalSec then local seconds = math.fmod(math.floor(totalSec), 60) local minutes = math.fmod(math.floor(totalSec/60), 60) if seconds and minutes then return seconds,minutes end end end Help me pls, i'm bad at math
  22. addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), function ( attacker, weapon, bodypart ) if (bodypart == 9) then outputChatBox("That was a hs") end end )
  23. Hello, i have these in my carshop: local carName = guiGridListGetItemText(carglVehicleSelection,guiGridListGetSelectedItem(carglVehicleSelection),1) local carID = getVehicleModelFromName(carName) local carCost = guiGridListGetItemText(carglVehicleSelection,guiGridListGetSelectedItem(carglVehicleSelection),2) setCameraMatrix(1983.1341552734, 2044.189453125, 12.663800239563, 1983.1794433594, 2045.1231689453, 12.308508872986) How can i make that, if i select a different vehicle, its creating a vehicle, when i click on another vehicle, the vehicle model changing ? I tried: -- Just showcase car car = createVehicle(carID,1982.0382080078, 2055.3986816406, 10.8203125) if isElement(car) then outputChatBox(carID) setElementModel(car, carID) end But its keep creating a new vehicle I want to make "Showcase car".
×
×
  • Create New...