Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. dude you already create the label look at your image ! wasn't you need to update the label? how you're doing it? You need to use guiSetText and delete the label in Kenix function https://wiki.multitheftauto.com/wiki/GuiSetText
  2. TAPL

    Help Me

    تقدر تحط أكثر من أحداثيات و تقدر تحط أحداثيات وحدة فقط مثلاً wait_spawns_t = { interior = 0, -- lobby interior -- // X // Y // Z {1667.3879394531 , 1012.9367675781 , 10.83}, } بس كذا بعد القيم بتلقى كل اللاعبين فوق بعض ...
  3. TAPL

    Help Me

    الملف الموجود فيه الأحداثيات BaseMode\others\waiting_room.lua
  4. I recommend to use db functions. https://wiki.multitheftauto.com/wiki/Ser ... _functions viewtopic.php?f=148&t=38203
  5. you need to use guiSetVisible after create the gui window. Example: theWindow = guiCreateWindow(100,200,50,50,"Example",false) guiSetVisible(theWindow,false) https://wiki.multitheftauto.com/wiki/GuiSetVisible
  6. TAPL

    few problems

    It's wrong. You can't use spaces in event name. You should use original event name. Read wiki before post something. Also you don't use attach element in this handlers addEventHandler( "onClientGUIAccepted", theedit) addEventHandler(" onClientGUIAccepted", theedit2) addEventHandler(" onClientGUIAccepted", theedit3) he attach it to element but he didn't attach it to function. Edit: about this you will need to trigger to server side and then trigger to client side for all players in the server.
  7. Since you already have create the label at the gui, why you don't use guiSetText? i think you already will need to update the time - date at the label you will need to use event onClientRender or a timer to update the time - date in the label.
  8. Did you read my topic about predefined variables? nvm, i've notice that he put mess arguments at moveObject. @Jokeℝ, check the wiki https://wiki.multitheftauto.com/wiki/MoveObject
  9. if eventName == 'onColShapeHit' then eventName is not defined. you can use isElementWithinColShape https://wiki.multitheftauto.com/wiki/IsE ... inColShape
  10. You have to use parent argument. https://wiki.multitheftauto.com/wiki/GuiCreateLabel
  11. https://wiki.multitheftauto.com/wiki/GetRealTime
  12. if you looking for Aspect 1.0.3 you have to check this viewtopic.php?f=108&t=39916 but the link seem dead. i have Aspect in my computer but i don't know if it 1.0.3 or not, i'll upload it for you. Edit: the link: http://www.mediafire.com/?fxo229byv34e3n4
  13. -- Server Side -- addEvent("jet", true) addEventHandler("jet",root, function() if getPlayerMoney(source) >= 1500 then takePlayerMoney(source,1500) givePedJetPack(source) bindKey(source,"j", "down", jetpack) setTimer(unbindKey,120000,1,source,"j","down",jetpack) outputChatBox("* #0099ccSuccessfully bought JetPack #000000[ #ff0000-$1500 #000000]#00ff00 Press 'j' To remove it !",source,0,255,0,true) else outputChatBox("* you Don't have enough Money !",source,255,0,0,true) end end) function jetpack(player) if doesPedHaveJetPack(player) then removePedJetPack(player) else givePedJetPack(player) end end
  14. there no server file you steal it? Post your client script here. if you read the error you will know that the client side trigger to server side but it look like there aren't any server file i think he has steal the script client side and he try to make the meta for it, that why he was looking for meta generator viewtopic.php?f=91&t=44834 he side: i download a resource and it doesnt come with this file i think he got the resource when he join a server. and you can see his post
  15. function enter(thePlayer) marker = createMarker(2809, -2474, 13, "cylinder", 2, 248, 211, 6, 153, thePlayer) blip = createBlip(2809, -2474, 13, 0) addEventHandler("onMarkerHit", marker, marcar) end addEventHandler("onVehicleEnter", root, enter) function marcar(thePlayer) if isElement(marker) then removeEventHandler("onMarkerHit", marker, marcar) destroyElement(marker) end if isElement(blip) then destroyElement(blip) end end
  16. function test() setTimer(spawnPlayer,5000,1,source,x,y,z) -- change x,y,z to the pos end addEventHandler ("onPlayerWasted",root,test) The source of this event is the player that died or got killed. https://wiki.multitheftauto.com/wiki/OnPlayerWasted remember that when you use spawnPlayer you will need to use setCameraTarget too. Note: setCameraTarget must be used to focus on the player. Also, all players have their camera initially faded out after connect. To ensure that the camera is faded in, please do a fadeCamera after https://wiki.multitheftauto.com/wiki/SpawnPlayer
  17. serverlogo = guiCreateStaticImage(0.8262, 0.2604, 0.1221, 0.1536, "logo.png", true) setTimer(guiSetVisible,5000,1,serverlogo,false)
  18. You don't need to do this what you need to do is add the resource in group admin below this <group name="Admin"> add this <object name="resource.bp"></object>
  19. لجميع الأسلحة هنا slot أرقام https://wiki.multitheftauto.com/wiki/Weapons
  20. what is char spawn? show entire code, still can't see from where client coming. https://wiki.multitheftauto.com/wiki/AddEventHandler client: the client that triggered the event using triggerServerEvent. Not set if the event was not triggered from a client.
×
×
  • Create New...