adward
Members-
Posts
45 -
Joined
-
Last visited
Everything posted by adward
-
Get the Moderator must be chosen by: 1 - respect all the members 2 - Do not have a More Irregularities and ban 3 - Do not Use words inappropriately Not on the large number of posting
-
3ɑsн8 ɑʟsнɾq is not deserve to get Moderator in this section For one major reason Lack of respect for the members of the Forum So i transpire MR.S3D to get it !
-
any help????
-
any one know what function use to import handlings this gui GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(222,231,364,352,"Imoprt Handligs",false) GUIEditor_Memo[1] = guiCreateMemo(12,21,334,203,"\n1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(64,239,211,66,"import",false,GUIEditor_Window[1])
-
hi guys i just need ask how to make bouton that import my handlings if any one know how to make it please help me GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(222,231,364,352,"Imoprt Handligs",false) GUIEditor_Memo[1] = guiCreateMemo(12,21,334,203,"\n1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(64,239,211,66,"import",false,GUIEditor_Window[1])
-
show it to the player in jail
-
thanks you so much for help me what about setTimer i tired to make it
-
show player Time Remaining
-
i Know to make time in server side but i need know how to make in client side if you know help me
-
GUIEditor_Window[1] = guiCreateWindow(212,58,358,493,"jail script",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Edit[1] = guiCreateEdit(187,132,162,42,"",false,GUIEditor_Window[1]) guiEditSetReadOnly(GUIEditor_Edit[1],true) GUIEditor_Button[1] = guiCreateButton(206,224,122,44,"jail",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(206,324,119,38,"unjail",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(194,94,124,35,"Player Name:",false,GUIEditor_Window[1]) function update() playerName = getPlayerName ( getLocalPlayer() ) playerList = guiCreateGridList(10,23,174,461,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(playerList,2) local column = guiGridListAddColumn( playerList, "Player", 0.85 ) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end addEventHandler ( "onClientGUIClick", playerList, click ) end end addEventHandler ( "onClientResourceStart", getRootElement(), update) addEventHandler("onClientPlayerJoin", getRootElement(), update) addEventHandler("onClientPlayerQuit", getRootElement(), update) addEventHandler("onClientPlayerChangeNick", getRootElement(), update) function click () local playerName = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) guiSetText ( GUIEditor_Edit[1], playerName ) end function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[1]) then playerNick = guiGetText ( GUIEditor_Edit[1] ) triggerServerEvent ("jail", getLocalPlayer(),getLocalPlayer(), playerNick) elseif (source == GUIEditor_Button[2]) then playerNick = guiGetText ( GUIEditor_Edit[1] ) triggerServerEvent ("unjail", getLocalPlayer(),getLocalPlayer(), playerNick) end end
-
I Need jail player for 1 min 60 sec How to do this in client side and show player on screen Time remaining
-
any one help me
-
Client GUIEditor_Window[1] = guiCreateWindow(212,58,358,493,"jail script",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Edit[1] = guiCreateEdit(187,132,162,42,"",false,GUIEditor_Window[1]) guiEditSetReadOnly(GUIEditor_Edit[1],true) GUIEditor_Button[1] = guiCreateButton(206,224,122,44,"jail",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(206,324,119,38,"unjail",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(194,94,124,35,"Player Name:",false,GUIEditor_Window[1]) function update() playerName = getPlayerName ( getLocalPlayer() ) playerList = guiCreateGridList(10,23,174,461,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(playerList,2) local column = guiGridListAddColumn( playerList, "Player", 0.85 ) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end addEventHandler ( "onClientGUIClick", playerList, click ) end end addEventHandler ( "onClientResourceStart", getRootElement(), update) addEventHandler("onClientPlayerJoin", getRootElement(), update) addEventHandler("onClientPlayerQuit", getRootElement(), update) addEventHandler("onClientPlayerChangeNick", getRootElement(), update) function click () local playerName = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) guiSetText ( GUIEditor_Edit[1], playerName ) end function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[1]) then playerNick = guiGetText ( GUIEditor_Edit[1] ) triggerServerEvent ("jail", getLocalPlayer(),getLocalPlayer(), playerNick) elseif (source == GUIEditor_Button[2]) then playerNick = guiGetText ( GUIEditor_Edit[1] ) triggerServerEvent ("unjail", getLocalPlayer(),getLocalPlayer(), playerNick) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) just 1 Question I Need jail player for 1 min 60 sec How to do this in client side and show player on screen Time remaining any one helpme
-
Its work now thanks you so much
-
server side not work ERROR: server.lua line 9 and line 32 attemt to call global getPlayerFromPartOfName(HIM)
-
its work thank you but when in the Vehicle and click button this picture 1 2 why????? use setElementRotation
-
TAPL client side: i make with my self sreve side: i got it from another script if you know how to make it please help me i not know alot things about script iam new scriptior thanks you for reply
-
hi guys i make jail panal but button jail and unjail not work please some one help me this client side: GUIEditor_Window[1] = guiCreateWindow(212,58,358,493,"jail script",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Edit[1] = guiCreateEdit(187,132,162,42,"",false,GUIEditor_Window[1]) guiEditSetReadOnly(GUIEditor_Edit[1],true) GUIEditor_Button[1] = guiCreateButton(206,224,122,44,"jail",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(206,324,119,38,"unjail",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(194,94,124,35,"Player Name:",false,GUIEditor_Window[1]) function update() playerName = getPlayerName ( getLocalPlayer() ) playerList = guiCreateGridList(10,23,174,461,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(playerList,2) local column = guiGridListAddColumn( playerList, "Player", 0.85 ) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end addEventHandler ( "onClientGUIClick", playerList, click ) end end addEventHandler ( "onClientResourceStart", getRootElement(), update) addEventHandler("onClientPlayerJoin", getRootElement(), update) addEventHandler("onClientPlayerQuit", getRootElement(), update) addEventHandler("onClientPlayerChangeNick", getRootElement(), update) function click () local playerName = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) guiSetText ( GUIEditor_Edit[1], playerName ) end function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[1]) then playerNick = guiGetText ( GUIEditor_Edit[1] ) triggerServerEvent ("jail", getLocalPlayer(), playerNick) elseif (source == GUIEditor_Button[2]) then playerNick = guiGetText ( GUIEditor_Edit[1] ) triggerServerEvent ("unjail", getLocalPlayer(), playerNick) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) server side: addEvent("jail",true) addEventHandler("jail",root, function() if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(player)), aclGetGroup ( "Admin" ) ) then local thePlayer = getPlayerFromPartOfName(name) local theVehicle = getPedOccupiedVehicle(thePlayer) if not thePlayer then return end if theVehicle then removePedFromVehicle(thePlayer) end if getElementData( thePlayer, "isJailed") then outputChatBox("This player is already in jail.",player,255,0,0) return end setElementInterior ( thePlayer, 0 ) setElementPosition (thePlayer, -2354.158203125, 1922.5645751953, 693.34704589844) setElementData ( thePlayer, "isJailed", true ) outputChatBox (name.." you are in jail now", getRootElement(), 255, 0, 0, true ) showPlayerHudComponent (thePlayer, "weapon", false) else outputChatBox ("Access denied", thePlayer, 193, 13, 13) end end) addEvent("unjail",true) addEventHandler("unjail",root, function() if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(player)), aclGetGroup ( "Admin" ) ) then local thePlayer = getPlayerFromPartOfName(name) if thePlayer then if not getElementData( thePlayer, "isJailed") then outputChatBox("This player is not in jail.",player,255,0,0) return end setElementInterior ( thePlayer, 0) setElementPosition ( thePlayer, -2313.3076171875, 1902.7426757813, 9.9688625335693) setElementData ( thePlayer, "isJailed", false ) outputChatBox (name.."yor are out the jail now"..name, getRootElement(), 0, 255, 0, true ) else outputChatBox ("Access denied", thePlayer, 193, 13, 13) end end)
-
hi function Jail (player, command, name) local thePlayer = getPlayerFromName(name) if thePlayer then setElementPosition ( thePlayer, 3, 4, 20 ) setElementData ( thePlayer, "isJailed", true ) outputChatBox (name.." has been jailed", getRootElement(), 255, 255, 255, true ) end end addCommandHandler("jail",Jail) function Unjail (player, command, name) local thePlayer = getPlayerFromName(name) if thePlayer then setElementPosition ( thePlayer, 3, 4, 20 ) setElementData ( thePlayer, "isJailed", false ) outputChatBox (name.." has been unjailed", getRootElement(), 255, 255, 255, true ) end end addCommandHandler("unjail",Unjail) this script for castillo i need make some change when player in the vehicle i cant jail him why? i need removePedFromVehicle how?
-
And... do these 'arenas' exists? ??? where o this??
-
debugscript: Syntax is 'debugscript ' ??? what mean??
-
where writ this /debugscript???
-
this work addEventHandler("onClientGUIClick",root, function () if (source == GUIEditor_Button[1]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"20") elseif (source == GUIEditor_Button[2]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"30") end end) but when add more button like this addEventHandler("onClientGUIClick",root, function () if (source == GUIEditor_Button[1]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"1") elseif (source == GUIEditor_Button[2]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"2") elseif (source == GUIEditor_Button[3]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"3") elseif (source == GUIEditor_Button[4) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"4") elseif (source == GUIEditor_Button[5]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"5") elseif (source == GUIEditor_Button[6) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"6") elseif (source == GUIEditor_Button[7]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"7") elseif (source == GUIEditor_Button[8]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"8") end end) not work
-
yes i add in acl group admin but not work
