-
Posts
1,283 -
Joined
-
Last visited
Everything posted by manve1
-
to close a window with a button is really easy just have to read wiki ... function close_it() if (source == button) then --- change the button to whatever button u made to close window guiSetVisible( window, false ) -- change the window, to whatever ur gui is showCursor(false) end end addEventHandler("onClientGUIClick", button, close_it ) -- leave the "close_it" part and change the button ... this should help you. if you still haven't solved how to make this script.
-
sometimes complicated scripts are worth more for use, and take less space
-
use imgtool to get the dff+txd files and to replace make script use: engineImportTXD engineReplaceModel
-
actually it depends on the price and how good he would make the scripts, if he makes really as less lines as it's possible and as complicated as it can get, some people might try it out
-
post ur lua code EDIT: or just swap places name with ID
-
i'm trying to trigger ACL to client side and i just can't manage it my self, tried out different way's, but still didn't open the window. client: function triggering_cc() if ( guiGetVisible ( Wnd ) == true ) then guiSetVisible ( Wnd, false ) showCursor(false) else guiSetVisible ( Wnd, true ) showCursor(true) end end addEvent( "triggering_c", true ) addEventHandler("triggering_c", root, triggering_cc) server: function triggering() if isObjectInACLGroup ( "user." ..getAccountName ( getPlayerAccount ( p ) ), aclGetGroup ( "Moderator" ) )then bindKey('p','down', function() guiSetVisible(Wnd, not guiGetVisible(Wnd)) showCursor(not isCursorShowing()) end ) triggerClientEvent ( thePlayer, "triggering_c", getRootElement() ) end end
-
function ChangePlayerPassword(player,command,oldpass,newpass) local account = getPlayerAccount(player) if (account) then if (isGuestAccount(account)) then outputChatBox("You must be logged into an account to change your password.",player) return end local password_check = getAccount(getPlayerUserName(player),oldpass) if (oldpass==password_check) then -- check the length of the new password if (string.len(newpass)>=5) then setAccountPassword(account,newpass) else outputChatBox("Your new password must be at least 5 characters long.",player) end else outputChatBox("Old password invalid.",player) end end end addCommandHandler("changepass",ChangePlayerPassword) i copied this from mta wiki, and it doesn't work, keeps saying "old password invalid" and has error of getAccount on line 9
-
TAPL, everything to do with ACL is server side and i don't know how to trigger it to the client side
-
OMG, i dont want them banned, did you read? TRIGGER, not ban
-
i got confused of how to trigger ACL to server side so i can actually open a window on moderator rights. if you could help me, thank you EDIT: i need just an example how server side should look for triggering the ACL
-
deleted so no one gonna try stealing it, i know lots of people do this.
-
this is client right? if yes, then it doesn't do anything.
-
the selected player and invalid player
-
It output's invalid player
-
The script actually does nothing if i press blow or fix, i selected my self, and got in car, tried to blow my self and nothing.
-
EDIT: Jay your script didn't work EDIT2: Some how solidsnake14 ur script decided to do absolutely nothing
