-
Posts
493 -
Joined
Everything posted by toptional
-
Its in the part of the script, Dude the thing is it works for the other planes so there is no point of me giving the resource that spawns the planes its clearly a problem with the guiGridListSetItemData
-
Nope nothing, It dont spawn the vehicle no debug error
-
addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) Window = guiCreateWindow(322,193,361,409,"Car Spawner",false) guiSetVisible (Window, false) Label = guiCreateLabel(102,115,117,123,"",false,Window) Grid = guiCreateGridList(42,54,277,216,false,Window) guiGridListAddColumn(Grid,"Planes",0.9) for i = 1, 3 do guiGridListAddRow(Grid) end guiGridListSetItemData(Grid,1,1,"Hydra") guiGridListSetItemText(Grid,0,1,"Shamal",false,false) guiGridListSetItemText(Grid,1,1,"F22 Raptor",false,false) guiGridListSetItemText(Grid,2,1,"Rustler",false,false) Button = guiCreateButton(40,307,296,80,"Close",false,Window) addEventHandler ( 'onClientGUIClick', Button, onButtonClick, false ) addEventHandler( "onClientGUIDoubleClick", Grid, doubleClicked, false ) end )
-
Anyone?
-
I have a script which spawns vehicles and gets the vehicle ID from the name, You Double Click on the GridList that says "Hydra" and then it spawns a hydra. How ever i want it a different name which is F22 Raptor so i tried adding this guiGridListSetItemData(Grid,1,1,"Hydra") guiGridListSetItemText(Grid,1,1,"F22 Raptor",false,false) but it wont work, Clicking on it doesnt spawn the vehicle meaning its not getting the ID from the F22 Raptor Whats wrong with it?
-
FFS Not Another one! God Damn it Learn Scripting, Unless you wanna pay! https://wiki.multitheftauto.com/wiki/Scr ... troduction
-
Dont worry i just failed on another part of the script thats why Thanks anyway!
-
When i spawn a vehicle i want the rotation to be 90 but it clearly wont work local vehicle = createVehicle ( vehicleModel, 2772, -2631, 16, 0, 0, 90 )
-
This was espiciaaaly made for someone im sure Well Done
-
Whats the runcode for getting the NUMBER of Accounts Registered? I forgot
-
He is saying how do i make a script that allows Admin's to see every teams chat, I Suggest just looking at the console
-
Hey, I made this GUI, and i have tried loads of code its failing so much. I need the GUI to SHOW When i press F5 That just wont happen take a look Window = {} Button = {} Memo = {} addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) Main_Window = guiCreateWindow(251,243,533,256,"CMG Team Changer",false) Memo_Info = guiCreateMemo(53,45,429,102,"With this script you can now change team, to stop Abuse we have made it cost 50k per team Change!\n\nCOSTS 50k!!! ",false,Main_Window) Button_LS = guiCreateButton(58,171,115,58,"Change to LS",false,Main_Window) Button_LV = guiCreateButton(219,171,115,58,"Change to LV",false,Main_Window) Button_SF = guiCreateButton(383,171,115,58,"Change to SF",false,Main_Window) Button_Close = guiCreateButton(479,21,40,24,"Close",false,Main_Window) end ) guiWindowSetSizable(Main_Window, true) guiSetVisible(Main_Window, true) function Main_WindowFunction (keyPresser) if guiGetVisible(Main_Window) then guiSetVisible(Main_Window, false) showCursor(false, false) else guiSetVisible(Main_Window, true) showCursor(true, true) end end bindKey("f5", "down", Main_Window) Ty Guys
-
dude there is no such thing as a TXD ID! There are vehicle id's which use txds and then you select the ID of which TXD to replace on the vehicle!
-
Are you sure your added in the ACL the ADMIN part not super moderator? or moderator?
-
I never remember these functions (worst memory) lol ty
-
Here you go https://wiki.multitheftauto.com/wiki/Vehicle_IDs (btw ask this in the scripting topic not here)
-
Is adding a picture going to be a gui element? (i think so) and whats the function to show a peicture dx something?
-
My little script used to fix vehicles with some progress bar added Note: When i enter the SF marker only the vehicle gets fixed, and money taken , but the progressbar shows for a mili second then goes away which is not what i want, I want it to freeze the vehicle (have not added freeze) for 5 seconds then add the progressbar for 5 seconds then after the 5 seconds it unfreezes money is taken and vehicle fixed Client: Edit- Fixed it I think
-
Confusing! lol ill just wait till MTA releases compressed downloads
-
Umm Yeh, How exactly did u get about to it? I really need a way arugg
-
Thanks but LOL What functions ?
-
Kind of on topic When making a GUI, is it possible to make the picture the button? insteaed of those ugly buttons?
-
Getting loads of bad arguement errors!
