-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
function spawn ( source, spawn ) outputChatBox ( "work1" ) local gang = executeSQLQuery ( "SELECT gang FROM Spawn WHERE name = ?", tostring ( spawn ) ) if ( gang ) then local gangName = gang [ 1 ] [ "gang" ] if ( gangName == "none" ) then outputChatBox ( "work2" ) else outputChatBox ( "work3" ) end end end
-
The new interface is awesome, although tab panels and buttons down the screen doesn't work right.
-
Is this script even yours? or you stole it from some server?
-
You're welcome.
-
local Skinmarker = createMarker ( 931.40002441406, -1030.9000244141, 30.89999961853, "cylinder", 1.5, 33, 33, 33, 255 ) -- umkleide local theTeam = createTeam ( "FBI", 31, 31, 31 ) addEventHandler ( "onMarkerHit", Skinmarker, function ( hitElement ) if ( isPedInVehicle ( hitElement ) ) then return end if ( not isFBI ( hitElement ) ) then return end setElementModel ( hitElement, 286 ) setPlayerTeam ( hitElement, theTeam ) giveWeapon ( hitElement, 29, 500, true ) -- Give him a MP5 with 500 bullets and set it as current weapon. end ) function isFBI ( thePlayer ) if ( not thePlayer ) then return false end local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) return isObjectInACLGroup ("user."..accName, aclGetGroup ( "FBI" ) ) end
-
You're welcome.
-
You're welcome. About gas stations, I guess you mean a fuel system, if so, then I just found this: https://community.multitheftauto.com/ind ... ls&id=3287 It took me 2 seconds to find it, you shouldn't be that lazy .
-
You have the function: checkForExternalSounds ( ) right? because if you use it without it, it'll just "enable" it.
-
@StanleySathler: It has to get a random index from the table, so you have to give the max index in math.random, which you get with: #table, only if is a indexed table of course.
-
No, wait, you're using parenthesis, not { }. local skins = { skin1, skin2, skin3 } skins [ math.random ( #skins ) ]
-
Create a table. E.g: local numbers = { 1, 5, 8, 10 } outputChatBox ( numbers [ math.random ( #numbers ) ] )
-
local mapMusicMute = false function muteMapMusic ( ) if ( not mapMusicMute ) then mapMusicMute = true checkForExternalSounds ( ) outputChatBox ( "#ff9d00[OFF]#FFFFFFMap music is now #FF0000disabled#FFFFFF, press M to enable it.", 255, 255, 255, true ) else mapMusicMute = false outputChatBox ( "#ff9d00[ON]#FFFFFFMap music is now #00FF00enabled#FFFFFF, press M to disable it.", 255, 255, 255, true ) for i, k in ipairs ( pausedExternalSounds ) do if isElement ( k ) then setSoundPaused ( k, false ) end end checkForExternalSounds ( ) end end bindKey ( "m","down",muteMapMusic )
-
Resources can be on a folder or on a ZIP.
-
You must use the function: moveObject.
-
Check in the meta.xml if the script is set to server side or client side. P.S: It must be client side ( type = "client" ).
-
Do you know that there's something called "decompress"?
-
You must create a table which will store player created vehicle. vehicleMarker = createMarker (938.79998779297,-1053.1999511719,30.60000038147, 'cylinder', 2.0, 16, 16, 16, 255 ) playerVehicles = { } function vehicleMarkerHit ( hitElement, matchingDimension ) if ( isElement ( hitElement ) and getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement ) ) then local team = getPlayerTeam ( hitElement ) if ( team and getTeamName ( team ) == "FBI" ) then local x, y, z = getElementPosition ( hitElement ) if ( isElement ( playerVehicles [ hitElement ] ) ) then destroyElement ( playerVehicles [ hitElement ] ) end playerVehicles [ hitElement ] = createVehicle ( 490, 938.79998779297, -1050.5, 31.89999961853, 0, 0, 0 ) warpPedIntoVehicle( hitElement, playerVehicles [ hitElement ] ) else outputChatBox( "You must be on the FBI to use this.", hitElement, 255, 0, 0 ) end end end addEventHandler ( "onMarkerHit", vehicleMarker , vehicleMarkerHit )
-
Read my syntax Michael. accountName, not account element. @monty: basegate = createObject ( 3115, 1728.8000488281, -1378.0999755859, 13.5, 0, 90, 0 ) basecol = createColCircle ( 1728.8000488281, -1378.0999755859, 13.5, 7 ) function openbase_area69gates ( thePlayer ) local gang = exports [ 'gang-resource' ]:getAccountGang ( getAccountName ( getPlayerAccount ( thePlayer ) ) ) if ( gang == "FBI" ) then moveObject ( basegate, 5000, 1728.8000488281, -1378.0999755859, 0 ) end end addEventHandler ( "onColShapeHit", basecol, openbase_area69gates )
-
@411: Que yo sepa no se puede desactivar asi, no todos los recursos traen eso. @gtamega: Busca en "zombies_client.lua" la funcion: "movethroatcol" y borra donde todo esto: local screenWidth, screenHeight = guiGetScreenSize() local dcount = tostring(table.getn( myZombies )) dxDrawText( dcount, screenWidth-40, screenHeight -50, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.44, "pricedown" ) dxDrawText( dcount, screenWidth-42, screenHeight -52, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1.4, "pricedown" )
-
Then you can use the exported function: getAccountGang ( accountName )
-
There's a feature request about compressing the send of resources to the client. http://bugs.multitheftauto.com/view.php?id=5015