-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
theJSON = toJSON ( { "item1", "item2", "item3" } ) theTable = fromJSON ( theJSON ) You can't save arrays in account data, but yes JSON strings.
-
You have to enabled selection mode "1" with: guiGridListSetSelectionMode And to get the items selected use: guiGridListGetSelectedItems Which returns a table like this: table = { [1] = { ["column"], -- has the first selected item's column ID ["row"] -- has the first selected item's row ID }, [2] = { ["column"],-- has the second selected item's column ID ["row"] -- has the second selected item's row ID }, ... }
-
Yeah, you don't need one.
-
If the rows exceed the grid list size, it'll create a scroll bar.
-
Yes, if you make multiple GUI elements inside it and they over load the size of the pane, it'll create a scroll bar.
-
Examples for what exactly?
-
You mean to find these characters/hex codes? if so, then is: string.find And: string.gsub To remove them.
-
Scroll bars or scroll panes? https://wiki.multitheftauto.com/wiki/Cli ... roll_panes https://wiki.multitheftauto.com/wiki/Cli ... Scrollbars
-
He's talking about setElementDimension.
-
Yes it does as far as I know, I'm able to trigger events from different resources. You're welcome.
-
txd = engineLoadTXD( "TXD/STOP.txd" ) col = engineLoadCOL( "COL/STOP.col" ) dff = engineLoadDFF( "DFF/STOP.dff", 0 ) You are trying to load them from folders that does not exist according to your meta.xml. txd = engineLoadTXD( "STOP.txd" ) col = engineLoadCOL( "STOP.col" ) dff = engineLoadDFF( "STOP.dff", 0 )
-
Yes, as long as you enable the second argument at addEvent.
-
For when the player joins, he doesn't has the client script loaded, that's why it worked some times.
-
I don't see any panel nor tab. You are talking about a GUI-tab? if so then you should use GUI-labels.
-
allPlayers = {} position = { 0, 0, 5 } function pedFun(playa,command,male,female) triggerClientEvent(playa,"soundStart",playa) if not countnumber then countnumber = 1 else countnumber = countnumber + 1 end if not male then male = math.random(0,2) end if not female then female = math.random(6,7) end x, y, z = unpack ( position ) if not bed then bed = {} end bed[countnumber] = createObject(2299,x+3,y+2.2,z-1,0,0,180) if not cj then cj = {} end cj[countnumber] = createPed(male,x,y,z) while not cj[countnumber] do cj[countnumber] = createPed(math.random(0,300),x,y,z) end setPedRotation(cj[countnumber],180) addPedClothes(cj[countnumber],"player_torso","torso",0) addPedClothes(cj[countnumber],"player_legs","legs",2) addPedClothes(cj[countnumber],"foot","feet",3) if not slut then slut = {} end slut[countnumber] = createPed(female,x,y,z) while not slut[countnumber] do slut[countnumber] = createPed(math.random(0,300),x,y,z) end addPedClothes(slut[countnumber],"player_torso","torso",0) addPedClothes(slut[countnumber],"player_legs","legs",2) addPedClothes(slut[countnumber],"foot","feet",3) setElementPosition(cj[countnumber],x+2.5,y+0.5,z) setElementPosition(slut[countnumber],x+2.5,y-0.5,z) setTimer(pedFun2,100,1,cj[countnumber],slut[countnumber],bed[countnumber]) end function pedFun2(cj,slut,bed) setPedAnimation(cj,"sex","sex_1_cum_p",1,true,false) setPedAnimation(slut,"sex","sex_1_cum_w",1,true,false) if not sexy then setTimer(delPeds,14000,1,cj,slut,bed) end end function sexBind() bindKey(source,"m","down","sexo") outputChatBox(""Si quieres fiesta preciona "M"!",source,0,255,0,true) end function sexBindStart() outputChatBox("Si quieres fiesta preciona "M"!",getRootElement(),0,255,0,true) players = getElementsByType("player") for i,player in ipairs (players) do bindKey(player,"m","down","sexo") end end function sexKeeper() if not sexy then sexy = true outputChatBox("????!",getRootElement(),0,255,0) else sexy = nil outputChatBox("LoL..!",getRootElement(),255,0,0) end end addCommandHandler("sexo",pedFun) addEventHandler("onPlayerJoin",getRootElement(),sexBind) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),sexBindStart) Ok, lo que hice fue agregar una tabla con las coordenadas que vos quieras. Para cambiarlas edita: position = { 0, 0, 5 } 0 = x 0 = y 5 = z
-
In order to use this game mode you need to have a MySQL server and phpMyAdmin, where you can create a database and import the db file. I use "xampp".
-
No, but you can send the data using triggerClientEvent.
-
Of what data are you talking about? which functions are you using?
-
Take one of the current vehicles as example and start editing it.
-
function disableFireForWeapon ( _, theWeapon ) if ( theWeapon == 38 ) then toggleControl ( source, "fire", false ) end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), disableFireForWeapon )
-
I don't know, I never cancelled this event.
-
Al parecer no se puede.
-
onPlayerWeaponSwitch That event is triggered when the player switches weapon.