SkatCh

Members
  • Content Count

    366
  • Joined

  • Last visited

Everything posted by SkatCh

  1. SkatCh

    about PHP sdk

    bro can explane more what i need to write inside the PHP file
  2. SkatCh

    about PHP sdk

    sorry i don't undrestand can you explane to me. this is my script ; - server side addEventHandler("onResourceStart", getRootElement(), function(theMap) local playerList = getPlayersName() if playerList then callRemote("My website", returnFunction, playerList) end end) function returnFunction(value) if value ~= "ERROR" then outputDebugString("done") end end function getPlayersName() local playerslist = {} for i,p in ipairs (getElementsByType("player")) do local thep = string.gsub(getPlayerName(p), "#%x%x%x%x%x%x", "") table.insert(playerslist,tostring(thep)) end return playerslist end and what i need to add inside the PHP
  3. SkatCh

    about PHP sdk

    bro i'm asking about the php part i already told you that my script is working fine , juts my question is what i need to type inside the php file.
  4. SkatCh

    about PHP sdk

    hi guys please i need some help , i have a simple question how can add players names inside my website using php sdk i know how to use callRemote , i add this and it's working fine i can see 'done' in my debugString but what i need to do to finish the php file. addEventHandler("onResourceStart", getRootElement(), function(theMap) local playerList = getPlayersName() if playerList then callRemote("My website", returnFunction, playerList) end end) function returnFunction(value) if value ~= "ERROR" then outputDebugString("done") end end function getPlayersName() local playerslist = {} for i,p in ipairs (getElementsByType("player")) do local thep = string.gsub(getPlayerName(p), "#%x%x%x%x%x%x", "") table.insert(playerslist,tostring(thep)) end return playerslist end
  5. SkatCh

    About jetpack

    so how can i change it .
  6. SkatCh

    About jetpack

    Hi guys , please i have a question can anyone tell me jetpack it's a weapon or an object . How can i change it to an other one (mod) . i have a dff and txd file but i don't know what i need to do to replace it .
  7. any help just i need to check if the player is coughing to stop him. is it possible using this function isPedChoking
  8. sorry guys no one gave me the right answer , can anyone tell me how to stop coughing .
  9. i know evrey thing about how to stop damage etc but the player still coughing when i use the sprycan to heal him.
  10. Hi guys please i have a simple question and i need answer , how can i stop player coughing when i use spraycan as a medic ?
  11. SkatCh

    Simple question

    hi guys please i have a simple question , can anyone explane to me when i need to use : - root with triggerClientEvent ("Eventname",root)
  12. Use this function : local x,y = guiGetScreenSize()
  13. SkatCh

    Need some help

    Sorry i think you don't undrestand my question , read it one more time.
  14. SkatCh

    Need some help

    Sorry Topic can be deleted.
  15. SkatCh

    HELP

    Use triggerClientEvent: -- client side addEvent("Sound",true) addEventHandler("Sound", getRootElement(), function() local Sound = playSound(".........mp3") -- put your sound file here setSoundVolume(Sound, 1) end) -- server side triggerClientEvent(........, "Sound",......)
  16. Here you go e.g: local x = -- x coordination local y = -- y coordination local z = -- z coordination addEventHandler("onClientRender",getRootElement(), function() local px,py,pz = getElementPosition(getLocalPlayer()) local distance = getDistanceBetweenPoints3D ( x,y,z,px,py,pz ) if distance <= 150 then local sx,sy = getScreenFromWorldPosition ( x, y, z+0.95, 0.06 ) if not sx then return end local scale = 1/(0.3 * (distance / 150)) dxDrawText ( "XeroxMTA", sx, sy - 30, sx, sy - 30, tocolor(255,255,255,255), math.min ( 0.4*(150/distance)*1.4,4), "bankgothic", "center", "bottom", false, false, false ) end end )
  17. Try this : local sql = dbQuery(handler,"SELECT * FROM bag") local resultTable = dbPoll(sql, -1) if resultTable then for rowNum, rowData in pairs(resultTable) do local bID = rowData['ID'] local newID = bID + 1 dbExec(handler,"INSERT INTO bag (TYPE) VALUES ('1')") outputChatBox("ADD BAGBACK ID "..tonumber(newID).."",source,125,0,0,true)
  18. function checkShipment(button, state, thePlayer) local level = getElementData(thePlayer, "level") if (source==bCheck) then if (button ~= "left" or state ~= "down") then return end -- < your code here > end end
  19. i know that u can do it just never give up , you are welcome
  20. Next time try to fix it by yourself . Never give up Anyway : -- Client side: -- server side:
  21. i agree with you , anyway he already gave u the correct answer.
  22. put ur funticon : funtion () -- here end
  23. It's easy just just you need to use "triggerClientEvent" . e.g: -- Client side: addEvent("Sound",true) addEventHandler("Sound", getRootElement(), function() local Sound = playSound(".........mp3") -- put your sound file here setSoundVolume(Sound, 1) end) -Server side: triggerClientEvent(........, "Sound",......)