Jump to content

Chopper

Members
  • Posts

    83
  • Joined

  • Last visited

Everything posted by Chopper

  1. Still cant figure out, even tho you helped me, which im thankful for. What im trying to do is, getElementModel of a Ped thats created in clientside, get that data to serverside, and UPDATE the skin value, with the skin id. If i create an Event, in clientside, with getElementModel, how will i be able to return it to server, and insert it into the db?
  2. I know. Is there any way i can send the Skin ID with getPedSkin to server?
  3. Thanks, got through that part. I have another question tho, is it possible to get the skin of a clientside ped in serverside? Because im trying to insert it into my mysql db, and i cant get the skin from client, to server. Also same with getPlayerName.
  4. Thanks. Does Events act like $_SESSION-s in PHP? because all i want to do, is a register system, and a skin system. i have these both, but i want the skin system to only execute, after the registration was successful. Any way how to do that? if its a dumb question, sorry. Im kinda new in lua.
  5. Hello Everyone. I recently figured out i have to use multiple files for my login system, and for that, my question is, how can i only execute the script from another file, only if the one before that is executed? For example, i have a gui window named test, in test.lua, and have a gui window named test2, in test2.lua. How is it possible to execute both, but only if test.lua has been executed? Thanks.
  6. There were several bugs i had to fix, but still not working.
  7. Hello everyone. Can anyone help me with this? I want to make the 2 functions to execute, only when the player who uses it is an admin in the acl. function duty() local name = getPlayerName(getLocalPlayer()) local sound = playSound ("files/sound.mp3") setSoundVolume (sound,0.5) panel = guiCreateStaticImage(432, 566, 447, 172, "files/bg.png", false) text = guiCreateLabel(443, 713, 426, 15, name.. " is now on adminduty!", false) guiSetFont(text, "default-bold-small") guiLabelSetColor(text, 252, 229, 230) guiLabelSetHorizontalAlign(text, "center", false) setTimer ( function() --Időzítőt beállítja// guiSetVisible (panel, false) --Panel láthatatlan// guiSetVisible (text, false) --text láthatatlan// end, 5000, 1 ) --5000=5 mp// end function offduty() local name = getPlayerName(getLocalPlayer()) local sound = playSound ("files/sound.mp3") setSoundVolume (sound,0.5) panel = guiCreateStaticImage(432, 566, 447, 172, "files/bg.png", false) text = guiCreateLabel(443, 713, 426, 15, name.. " is now off adminduty!", false) guiSetFont(text, "default-bold-small") guiLabelSetColor(text, 252, 229, 230) guiLabelSetHorizontalAlign(text, "center", false) setTimer ( function() guiSetVisible (panel, false) guiSetVisible (text, false) end, 5000, 1 ) end addCommandHandler ("aduty", duty) addCommandHandler ("offduty", offduty) Thanks if anyone can help me.
×
×
  • Create New...