-
Posts
1,283 -
Joined
-
Last visited
Everything posted by manve1
-
I get nil value when i click on a grid list, not sure why, but i did grid lists long time ago, so i forgot how to do them; local gridDimension = guiCreateGridList( 0.275, 0.2, 0.25, 0.325, true, window ) addEventHandler('onClientGUIClick', gridDimension, function( ) if ( guiGridListGetItemText ( gridDimension, 1, columnDimension ) == "Dimension: 1" ) then outputChatBox('clicked', 255, 255, 255 ) end end, false )
-
This section is to help with your own scripts, not for requesting something.
-
local playerName = getPlayerAccount( thePlayer ) function saved( thePlayer ) if (playerName) then local x, y, z = getElementPosition( thePlayer ) if (x and y and z) then setAccountData( playerName, "positions", x, y, z) end end end function setback( thePlayer, playerName ) if (playerName) then local xX, yY, zZ = getAccountData( thePlayer, "positions" ) if (xX and yY and zZ) then setElementPosition( thePlayer, xX, yY, zZ) end end end addEventHandler("onPlayerQuit", getRootElement(), saved) addEventHandler("onPlayerLogin", getRootElement(), setback)
-
local playerName = getPlayerAccount( thePlayer ) function saved( thePlayer ) if (playerName) then local x, y, z = getElementPosition( thePlayer ) if (x, y, z) then setAccountData( playerName, "positions", x, y, z) end end end function setback( thePlayer, playerName ) if (playerName) then local xX, yY, zZ = getAccountData( thePlayer, "positions" ) if (xX, yY, zZ) then setElementPosition( thePlayer, xX, yY, zZ) end end end addEventHandler("onPlayerQuit", getRootElement(), saved) addEventHandler("onPlayerLogin", getRootElement(), setback)
-
you have 'set' in ur event handler and function name, as it already is a function of MTA try changing it.
-
:facepalm: I know the function, but simply it shouldn't trigger to a label for a number -.-
-
Thanx, but how can i trigger it from server side to client side?
-
[PROJECT] Gamemode Creation (paying) [HIRING]
manve1 replied to BrightLiteFilms's topic in Scripting
to create teams use: createTeam Note: Its Server-Sided -
Is there a function to get number of online players?
-
[PROJECT] Gamemode Creation (paying) [HIRING]
manve1 replied to BrightLiteFilms's topic in Scripting
Just try your best in making scripts and come over here to get help fix errors -
Smart. Sorry i didn't post that i figured this out, but yeh, i realized this morning i forgot to do it with guiComboBoxGetSelected
-
it works with words aswell, after changing to numbers same problem #Edit: The first one on top I mean like: Dance/Dj will play always whatever i chose in that combo box, BUT if i change to Classic to be on top of Dance/Dj the classic will always play
-
im using a variable? something like: local a = 7 local b = 2 outputChatBox( 'A = '.. a ..' and B = '.. b, source, 255, 255, 255 )
-
addEventHandler('onClientGUIClick', buttonRadioPlay, function( ) if (guiComboBoxGetItemText(genreBox, 'Dance/Dj')) then if (sound) then stopSound( sound ) end sound = playSound( Dance_Dj ) elseif (guiComboBoxGetItemText(genreBox, 'Classic')) then if (sound) then stopSound( sound ) end sound = playSound( Classic ) end end ) Every thing is defined, i just don't want to post the website link.
-
When i use combo boxes and i have few problems with sound, as i am playing 2 sounds and i check which item was selected in the combo box. If i play one sound, then try play another sound, it just play's the one that was started to play firstly. I mean it doesn't change to different music type
-
I know that for sure, as my mate buyed host and added sms payment, it was 50% higher price than credit card
-
the middle bit (( after exports. )): exports.players:givemoney(player,amount) Is the resource folder name as far as i know. So without the resource in your resource folder you can do absolutely nothing or re-script it.
-
That script is used in MTA server, so if you think logically it was already made
-
This is compiled code, there are programs to decompile a code like this, if it is an LUA code and was made for a mta script then when u decompile it, the functions and event handlers ect ... will be picked randomly
-
Not sure, but still i am running, when i release space still i am not walking
