Black2
Members-
Posts
67 -
Joined
-
Last visited
Everything posted by Black2
-
Hello,I Need remove the export,but if i remove this don't work why ? if (not exports.team:isPlayerInTeams(localPlayer, "Criminals")) then end why this don't work: if not isPlayerInTeams(localPlayer, "Criminals")) then
-
Hello,I wanted to stay off the button and stay activated only for those who belong to a group acl Any idea ? Thx
-
Hello,I have this script, it adds trailer to the vehicle can see, I wonder how do to disconnect the trailer when the vehicle he comes back doing what ever the trailer is there. Any idea ? Thx. function attachTrailer (theVehicle, seat, jacked ) if ( getElementModel (theVehicle) == 514 ) then local x,y,z = getElementPosition(theVehicle) trailer = createVehicle ( 584, x-11, y, z) setElementRotation (trailer, getElementRotation (theVehicle)) attachTrailerToVehicle (theVehicle, trailer) end end addEventHandler("onPlayerVehicleEnter", getRootElement(), attachTrailer)
-
I have this resource que shows occupation but the space to Appear the occupation name is small as you can see in the picture, will be que has some way for me to Increase the space? because as you can see in the photo the name has a lot more space, how can I increase the space? Thx.
-
Why this don't work ? CODE REMOVED BY Solidsnake14
-
how i do to player in vehicle can't hit pickup ? Can edit for me ? Thx. local pickup1000 = createPickup ( -323.20020, 1054.82104, 19.7421, 3, 1239, 0 ) GUIEditor = { button = {}, window = {}, memo = {} } local function clientPickupHit(thePlayer, matchingDimension) windows1000 = guiCreateWindow(171, 151, 280, 439, "Info", false) guiWindowSetSizable(windows1000, false) memo1000 = guiCreateMemo(20, 36, 240, 354, "Ls Jefferson Hospital Info", false, windows1000) button1000 = guiCreateButton(53, 397, 165, 32, "Close", false, windows1000) showCursor(true) end addEventHandler("onClientPickupHit", pickup1000, clientPickupHit) addEventHandler("onClientGUIClick", guiRoot, function () if (source == button1000) then guiSetVisible (windows1000,false) showCursor(false) end end)
-
[HELP]Because my button does not close the window ? local pickup = createPickup ( 2487.1398925781, -1667.7604980469, 13.34375, 3, 1239, 0 ) GUIEditor = { button = {}, window = {}, memo = {} } local function clientPickupHit(thePlayer, matchingDimension) windows1 = guiCreateWindow(171, 151, 280, 439, "Info", false) guiWindowSetSizable(windows1, false) memo1 = guiCreateMemo(20, 36, 240, 354, "Here Info", false, windows1) button1 = guiCreateButton(53, 397, 165, 32, "Close", false, windows1) showCursor(true) end addEventHandler("onClientPickupHit", pickup, clientPickupHit) function hidegui() guiSetVisible(windows1, false) showCursor (false) end addEventHandler ( "onClientGUIClick", button1, hidegui, false )
-
How i can use this command only in colrectangle ? function test2 ( ) outputChatBox ( "Test1", 255, 255, 255 ) end end addCommandHandler ( "Test", test2, true ) - "1577.65" posY="1723.59" sizeX="59.46" sizeY="139.45" color="#00FF007F" dimension="0" />
-
I want to use the command only in rectangle. When the player enters the rectangle it can use the command and when he gets out he can not use more. Here's an example that might work will be?,If it works What do I should use for this? Thx addEventHandler ("onColShapeHit", getRootElement(), function(hitElement, matchingDimension) if (getElementType (hitElement) == "player") and (getElementID (source) == "greenzoneColshape") then toggleControl (hitElement, "fire", false) toggleControl (hitElement, "aim_weapon", false) toggleControl (hitElement, "vehicle_fire", false) triggerClientEvent (hitElement, "enableGodMode", hitElement) end end)
-
Hello,I know has ghost mode for vehicle more how i make ghost mode for players ?Thx
-
I hope you understood,I want to make the player can cross the object. Ex:Remove Object dff
-
The Title say all,How i use command only in vehicle ?Thx.
-
Hello,I need help here. I need the command to work only in one location, so not working on other map locations,i don't know how,more can use rectangle or height function. Any Idea ?
-
Why Don't Work ? function join() setPlayerStat ( thePlayer, 69, 1000 ) setPlayerStat ( thePlayer, 71, 1000 ) setPlayerStat ( thePlayer, 72, 1000 ) setPlayerStat ( thePlayer, 73, 1000 ) setPlayerStat ( thePlayer, 74, 1000 ) setPlayerStat ( thePlayer, 75, 1000 ) setPlayerStat ( thePlayer, 76, 1000 ) setPlayerStat ( thePlayer, 77, 1000 ) setPlayerStat ( thePlayer, 78, 1000 ) setPlayerStat ( thePlayer, 79, 1000 ) setPlayerStat ( thePlayer, 80, 1000 ) setPlayerStat ( thePlayer, 81, 1000 ) setPlayerStat ( thePlayer, 24, 1000 ) end addEventHandler ( "onRethePlayerStart", getRootElement(), join )
-
Why this don't work ? I need this open only in dimension 2 local markerp = createMarker( -1868.72, 46.16, 1054.2, 'Cylinder', 1.5, 255, 255, 0, 170 ); setElementDimension(markerp, 2) function Pilotjob(hitElement, matchingDimension) if getElementType(hitElement) == "player" and (hitElement == localPlayer) and (getElementDimension(hitElement) == matchingDimension) then if not guiGetVisible(Wnd) then guiSetVisible(Wnd, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", markerp, Pilotjob)
-
Hello i have this,he open in all dimensions how i put to open only in dimension 2 ? Thx function Pilotjob(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(Wnd) then guiSetVisible(Wnd, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", markerp, Pilotjob)
-
Why this don't work ? function onVehicleEnter ( thePlayer ) if ( not Barcos [ getElementModel ( source ) ] ) then return end local occupation = getElementData( source, "Occupation", "Fisherman", true ) if occupation and occupation ~= "" then if (occupation == "Fisherman" ) then getNewBarcoLocation ( thePlayer ) end end end addEventHandler ( "onVehicleEnter", root, onVehicleEnter )
-
Hello this resource works on Team how to works in Occupation ? local join = createMarker( -2975.974609375, 504.951171875, 1.3, "cylinder", 1.3, 255, 255, 0, 150) function joinjob(localPlayer) if (getElementType(localPlayer) == "player") and not ( isPedInVehicle( localPlayer ) ) then triggerClientEvent (localPlayer,"pesquero",getRootElement(),localPlayer) end end addEventHandler ("onMarkerHit", join, joinjob) createBlip( -2975.974609375, 504.951171875, 2.4296875, 56, 3, 0, 0, 255, 255, 0, 250) local Barcos = { [ 453 ] = true, [ 453 ] = true } local BarcosSkins = { [ 210 ] = true, [ 225 ] = true } local barcoTable = { { -3038.4482421875, 604.1875, -0.340974599123 }, { -3095.3408203125, 766.5185546875, -0.31019884347916 }, { -3161.6103515625, 903.453125, -0.35642492771149 }, { -3094.2880859375, 998.7802734375, -0.32000458240509 }, { -3027.7529296875, 922.7392578125, -0.34394550323486 }, { -3041.1240234375, 856.3134765625, -0.3497366309166 }, { -3053.4599609375, 750.5791015625, -0.33944514393806 }, { -3045.521484375, 643.712890625, -0.375756919384 }, { -3057.8583984375, 549.732421875, -0.36067345738411 }, { -3143.16796875, 504.248046875, -0.39858004450798 }, { -3198.35546875, 605.2978515625, -0.35631018877029 }, { -3306.8505859375, 744.03125, -0.32741913199425 }, { -3430.1376953125, 963.283203125, -0.37901026010513 }, { -3384.814453125, 1068.4091796875, -0.32916113734245 }, { -3278.1748046875, 1114.71875, -0.3424257338047 }, } function getRandombarcoTable ( ) return unpack ( barcoTable [ math.random ( #barcoTable ) ] ) end function createbarcoTeam ( ) theTeam = createTeam ( "Pesquero", 255, 255, 0 ) end addEventHandler ( "onResourceStart", resourceRoot, createbarcoTeam ) function joinBarco( skin ) setPlayerTeam ( source, theTeam ) setElementModel ( source, skin ) setElementData( source, "Occupation", "Fisherman", true ) outputChatBox ( "aqui texto",source, 0, 255, 0 ) end addEvent ( "setBarco", true ) addEventHandler ( "setBarco", root, joinBarco ) function getNewBarcoLocation ( thePlayer ) local x, y, z = getRandombarcoTable ( ) triggerClientEvent ( thePlayer, "barco_set_location", thePlayer, x, y, z ) end function onVehicleEnter ( thePlayer ) if ( not Barcos [ getElementModel ( source ) ] ) then return end if ( not getPlayerTeam ( thePlayer ) ) then return end if ( getTeamName ( getPlayerTeam ( thePlayer ) ) == "Pesquero" ) then getNewBarcoLocation ( thePlayer ) end end addEventHandler ( "onVehicleEnter", root, onVehicleEnter ) addEvent ( "pizza_finish", true ) addEventHandler("pizza_finish", root, function ( ) if ( not isPedInVehicle ( source ) ) then return end local vehicle = getPedOccupiedVehicle ( source ) if ( not Barcos [ getElementModel ( vehicle ) ] ) then return end local money = math.random ( 800, 1600 ) givePlayerMoney ( source, money ) setElementFrozen ( vehicle, true ) fadeCamera(source, false, 1.-- s8) --> setTimer(fadeCamera, 1500, 1, source, true) setElementFrozen ( vehicle, false ) getNewBarcoLocation ( source ) end )
-
I have erro here it opens when the map opens but then does not close how i fix ? Thx local localPlayer = getLocalPlayer() local screenWidth, screenHeight = guiGetScreenSize() local position_lbl = guiCreateLabel( 10, screenHeight-24, screenWidth, 22, " ", false ) function renderPosition() if not isPlayerMapVisible( ) then return end local _x, _y, _z = getElementPosition( localPlayer ) local _rot = getPlayerRotation( localPlayer ) guiSetText( position_lbl, "X: " .. tostring( _x ) .. "; Y: " .. tostring( _y ) .. "; Z: " .. tostring( _z ) .. "; RotZ: " .. tostring(_rot) ) end addEventHandler( "onClientRender", getRootElement(), renderPosition )
-
why this don't work ? I need to open when the map is opened local localPlayer = getLocalPlayer() local screenWidth, screenHeight = guiGetScreenSize() local position_lbl = guiCreateLabel( 10, screenHeight-24, screenWidth, 22, " ", false ) function renderPosition() local _x, _y, _z = getElementPosition( localPlayer ) local _rot = getPlayerRotation( localPlayer ) if not isPlayerMapVisible( ) then return end guiSetText( position_lbl, "X: " .. tostring( _x ) .. "; Y: " .. tostring( _y ) .. "; Z: " .. tostring( _z ) .. "; RotZ: " .. tostring(_rot) ) end addEventHandler( "onClientRender", getResourceRootElement( getThisResource( ) ), renderPosition )
-
How i can disable one command and active only in ColRectangle ?
-
I Need put here start only for occupation and not team how i put ? Help me thx
-
local barcoTable = { { -3038.4482421875, 604.1875, -0.340974599123 }, { -3095.3408203125, 766.5185546875, -0.31019884347916 }, { -3161.6103515625, 903.453125, -0.35642492771149 }, { -3094.2880859375, 998.7802734375, -0.32000458240509 }, { -3027.7529296875, 922.7392578125, -0.34394550323486 }, { -3041.1240234375, 856.3134765625, -0.3497366309166 }, { -3053.4599609375, 750.5791015625, -0.33944514393806 }, { -3045.521484375, 643.712890625, -0.375756919384 }, { -3057.8583984375, 549.732421875, -0.36067345738411 }, { -3143.16796875, 504.248046875, -0.39858004450798 }, { -3198.35546875, 605.2978515625, -0.35631018877029 }, { -3306.8505859375, 744.03125, -0.32741913199425 }, { -3430.1376953125, 963.283203125, -0.37901026010513 }, { -3384.814453125, 1068.4091796875, -0.32916113734245 }, { -3278.1748046875, 1114.71875, -0.3424257338047 }, } function getRandombarcoTable ( ) return unpack ( barcoTable [ math.random ( #barcoTable ) ] ) end
-
Hello,I have one script and the marks are random,how i put for mark not random ?
