gghvcffcv
Members-
Posts
139 -
Joined
-
Last visited
Everything posted by gghvcffcv
-
@HyPeX Apparently, when someone buy weapons from the dealer, hes wants to give the dealer the money, but it's not working .. he already said what the problem is. local inMarker addEventHandler("onClientMarkerLeave", resourceRoot, function( hitElement ) if not hitElement == localPlayer then return end inMarker = nil end) addEventHandler("onClientMarkerLeave", resourceRoot, function( hitElement ) if not hitElement == localPlayer then return end inMarker = source end) addEventHandler("onClientMarkerHit", resourceRoot, function( hitElement ) local markerType = getElementData(source, "markerType") if hitElement == localPlayer and markerType and markerType == "WeaponShop" then panel = guiCreateWindow(510, 197, 352, 396, "Arms Dealer", false) guiWindowSetSizable(panel, false) armaA = guiCreateButton(10, 28, 129, 30, "M4", false, panel) armaB = guiCreateButton(10, 68, 129, 30, "AK-47", false, panel) armaC = guiCreateButton(10, 108, 129, 30, "Sniper", false, panel) armaD = guiCreateButton(10, 148, 129, 30, "Grenade", false, panel) armaE = guiCreateButton(10, 188, 129, 30, "Tec-9", false, panel) armaF = guiCreateButton(10, 228, 129, 30, "Uzi", false, panel) armaG = guiCreateButton(10, 268, 129, 30, "Sawn-Off", false, panel) armaH = guiCreateButton(10, 308, 129, 30, "Silenced", false, panel) armaI = guiCreateButton(10, 348, 129, 30, "Deagle", false, panel) cerrar = guiCreateButton(166, 25, 169, 352, "Close", false, panel) guiSetFont(cerrar, "sa-gothic") showCursor (true) addEventHandler ("onClientGUIClick", armaA, armaAA, false) addEventHandler ("onClientGUIClick", armaB, armaBB, false) addEventHandler ("onClientGUIClick", armaC, armaCC, false) addEventHandler ("onClientGUIClick", armaD, armaDD, false) addEventHandler ("onClientGUIClick", armaE, armaEE, false) addEventHandler ("onClientGUIClick", armaF, armaFF, false) addEventHandler ("onClientGUIClick", armaG, armaGG, false) addEventHandler ("onClientGUIClick", armaH, armaHH, false) addEventHandler ("onClientGUIClick", armaI, armaII, false) addEventHandler ("onClientGUIClick", cerrar, cerrarr, false) end end) function para ( hitElement ) showCursor ( false ) guiSetVisible (panel, false ) triggerServerEvent ( "onPlayerWasted", localPlayer) end function para ( hitElement ) showCursor ( false ) guiSetVisible (panel, false ) end function cerrarr ( hitElement ) showCursor ( false ) guiSetVisible (panel, false ) end function armaAA ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaAA", localPlayer ) end function armaBB ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaBB", localPlayer ) end function armaCC ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaCC", localPlayer ) end function armaDD ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaDD", localPlayer ) end function armaEE ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaEE", localPlayer ) end function armaDD ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaDD", localPlayer ) end function armaFF ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaFF", localPlayer ) end function armaGG ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaGG", localPlayer ) end function armaHH ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaHH", localPlayer ) end function armaII ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaII", localPlayer ) end
-
I got two persons a person that Buys weapons and the other that sells them i want givePlayerMoney to give The dealer money when someone buys him Weapons which is the problem? local markers = {} function consoleCreateMarker ( thePlayer, commandName ) if not markers [ thePlayer ] then local x, y, z = getElementPosition ( thePlayer ) markers [ thePlayer ] = createMarker ( x, y, z - 1, "cylinder", 1.5, 255, 0, 0, 170 ) if ( markers [ thePlayer ] ) then setElementData(markers [ thePlayer ], "markerType", "WeaponShop") setElementFrozen( thePlayer, true ) outputConsole ( "Marker created successfully", thePlayer ) else outputConsole ( "Failed to create marker", thePlayer ) end else outputChatBox ( "You're selling already.", thePlayer, 255, 0, 0 ) end end addCommandHandler ( "sell", consoleCreateMarker, false, false ) function para( thePlayer, commandName ) if markers [ thePlayer ] then setElementFrozen( thePlayer, false ) destroyElement( markers [ thePlayer ] ) markers [ thePlayer ] = nil else outputChatBox ( "You haven't started selling yet.", thePlayer, 255, 0, 0) end end addCommandHandler ("stopsell", para, false, false) --------------------------------------------------------------------------------------------------------------------------------------- function armaAA ( thePlayer ) if ( getPlayerMoney(source) >= 2000 ) then takePlayerMoney ( source, 2000 ) giveWeapon ( source, 31, 100 ) givePlayerMoney (thePlayer, 10000) end end addEvent( "armaAA", true ) addEventHandler( "armaAA", getRootElement(), armaAA ) --------------------------------------------------------------------------------------------------------------------------------------- function armaBB ( thePlayer ) if ( getPlayerMoney(source) >= 2000 ) then takePlayerMoney ( source, 2000 ) giveWeapon ( source, 30, 100 ) givePlayerMoney (thePlayer, 10000) end end addEvent( "armaBB", true ) addEventHandler( "armaBB", getRootElement(), armaBB ) --------------------------------------------------------------------------------------------------------------------------------------- function armaCC ( thePlayer ) if ( getPlayerMoney(source) >= 4000 ) then takePlayerMoney ( source, 4000 ) giveWeapon ( source, 34, 30 ) givePlayerMoney (thePlayer, 10000) end end addEvent( "armaCC", true ) addEventHandler( "armaCC", getRootElement(), armaCC ) --------------------------------------------------------------------------------------------------------------------------------------- function armaDD ( thePlayer ) if ( getPlayerMoney(source) >= 500 ) then takePlayerMoney ( source, 500 ) giveWeapon ( source, 16, 1 ) givePlayerMoney (thePlayer, 10000) end end addEvent( "armaDD", true ) addEventHandler( "armaDD", getRootElement(), armaDD ) --------------------------------------------------------------------------------------------------------------------------------------- function armaEE( thePlayer ) if ( getPlayerMoney(source) >= 200 ) then takePlayerMoney ( source, 200 ) giveWeapon ( source, 32, 100 ) givePlayerMoney (thePlayer, 10000) end end addEvent( "armaEE", true ) addEventHandler( "armaEE", getRootElement(), armaEE ) --------------------------------------------------------------------------------------------------------------------------------------- function armaFF( thePlayer ) if ( getPlayerMoney(source) >= 200 ) then takePlayerMoney ( source, 200 ) giveWeapon ( source, 28, 100 ) givePlayerMoney (thePlayer, 10000) end end addEvent( "armaFF", true ) addEventHandler( "armaFF", getRootElement(), armaFF ) --------------------------------------------------------------------------------------------------------------------------------------- function armaGG( thePlayer ) if ( getPlayerMoney(source) >= 200 ) then takePlayerMoney ( source, 200 ) giveWeapon ( source, 26, 50 ) givePlayerMoney (thePlayer, 10000) end end addEvent( "armaGG", true ) addEventHandler( "armaGG", getRootElement(), armaGG ) --------------------------------------------------------------------------------------------------------------------------------------- function armaHH( thePlayer ) if ( getPlayerMoney(source) >= 200 ) then takePlayerMoney ( source, 200 ) giveWeapon ( source, 23, 100 ) givePlayerMoney (thePlayer, 10000) end end addEvent( "armaHH", true ) addEventHandler( "armaHH", getRootElement(), armaHH ) --------------------------------------------------------------------------------------------------------------------------------------- function armaII( thePlayer ) if ( getPlayerMoney(source) >= 2000 ) then takePlayerMoney ( source, 2000 ) giveWeapon ( source, 24, 50 ) givePlayerMoney (thePlayer, 10000) end end addEvent( "armaII", true ) addEventHandler( "armaII", getRootElement(), armaII )
-
Use Server side, Because if you use Client The money Won't work and if this is with a Skin only you can see the Mod Skin if you want that all the persons in the server can see the new skin So put it in Server.
-
Like this?: function para( thePlayer ) if getPlayerName ( thePlayer ) then if getElementData( theMarker, "markerType" ) then setElementFrozen( thePlayer, false ) destroyElement ( theMarker ) end end end addCommandHandler ("stopsell", para))
-
Could someone help with with this please?
-
Well i would help you but i am not 100 % Scripter
-
I don't think Anybody will do it for Free
-
Hey my friends the problem is if someone do /stopsell it deletes the marker of the other dealer, and no of the dealer that did /stopsell and The dealers can create more than 1 marker Help please server: function consoleCreateMarker ( thePlayer, commandName ) if ( thePlayer ) then local x, y, z = getElementPosition ( thePlayer ) theMarker = createMarker ( x, y, z - 1, "cylinder", 1.5, 255, 0, 0, 170 ) if ( theMarker ) then setElementData(theMarker, "markerType", "WeaponShop") setElementFrozen( thePlayer, true ) outputConsole ( "Marker created successfully", thePlayer ) else outputConsole ( "Failed to create marker", thePlayer ) end end end addCommandHandler ( "sell", consoleCreateMarker ) function para( thePlayer, commandName ) setElementFrozen( thePlayer, false ) destroyElement( theMarker ) end addCommandHandler ("stopsell", para) --------------------------------------------------------------------------------------------------------------------------------------- function cerrarr ( marker ) if not marker then return end destroyElement ( marker ) end addEvent( "cerrarr", true ) addEventHandler( "cerrarr", root, cerrarr ) --------------------------------------------------------------------------------------------------------------------------------------- function armaAA ( hitElement1 ) if ( getPlayerMoney(source) >= 2000 ) then takePlayerMoney ( source, 2000 ) giveWeapon ( source, 31, 100 ) end end addEvent( "armaAA", true ) addEventHandler( "armaAA", root, armaAA ) --------------------------------------------------------------------------------------------------------------------------------------- function armaBB ( hitElement1 ) if ( getPlayerMoney(source) >= 2000 ) then takePlayerMoney ( source, 2000 ) giveWeapon ( source, 30, 100 ) end end addEvent( "armaBB", true ) addEventHandler( "armaBB", root, armaBB ) --------------------------------------------------------------------------------------------------------------------------------------- function armaCC ( hitElement1 ) if ( getPlayerMoney(source) >= 4000 ) then takePlayerMoney ( source, 4000 ) giveWeapon ( source, 34, 30 ) end end addEvent( "armaCC", true ) addEventHandler( "armaCC", root, armaCC ) --------------------------------------------------------------------------------------------------------------------------------------- function armaDD ( hitElement1 ) if ( getPlayerMoney(source) >= 500 ) then takePlayerMoney ( source, 500 ) giveWeapon ( source, 16, 1 ) end end addEvent( "armaDD", true ) addEventHandler( "armaDD", root, armaDD ) --------------------------------------------------------------------------------------------------------------------------------------- function armaEE( hitElement1 ) if ( getPlayerMoney(source) >= 200 ) then takePlayerMoney ( source, 200 ) giveWeapon ( source, 32, 100 ) end end addEvent( "armaEE", true ) addEventHandler( "armaEE", root, armaEE ) --------------------------------------------------------------------------------------------------------------------------------------- function armaFF( hitElement1 ) if ( getPlayerMoney(source) >= 200 ) then takePlayerMoney ( source, 200 ) giveWeapon ( source, 28, 100 ) end end addEvent( "armaFF", true ) addEventHandler( "armaFF", root, armaFF ) --------------------------------------------------------------------------------------------------------------------------------------- function armaGG( hitElement1 ) if ( getPlayerMoney(source) >= 200 ) then takePlayerMoney ( source, 200 ) giveWeapon ( source, 26, 50 ) end end addEvent( "armaGG", true ) addEventHandler( "armaGG", root, armaGG ) --------------------------------------------------------------------------------------------------------------------------------------- function armaHH( hitElement1 ) if ( getPlayerMoney(source) >= 200 ) then takePlayerMoney ( source, 200 ) giveWeapon ( source, 23, 100 ) end end addEvent( "armaHH", true ) addEventHandler( "armaHH", root, armaHH ) --------------------------------------------------------------------------------------------------------------------------------------- function armaII( hitElement1 ) if ( getPlayerMoney(source) >= 2000 ) then takePlayerMoney ( source, 2000 ) giveWeapon ( source, 24, 50 ) end end addEvent( "armaII", true ) addEventHandler( "armaII", root, armaII ) client: local inMarker addEventHandler("onClientMarkerLeave", resourceRoot, function( hitElement ) if not hitElement == localPlayer then return end inMarker = nil end) addEventHandler("onClientMarkerLeave", resourceRoot, function( hitElement ) if not hitElement == localPlayer then return end inMarker = source end) addEventHandler("onClientMarkerHit", resourceRoot, function( hitElement ) local markerType = getElementData(source, "markerType") if hitElement == localPlayer and markerType and markerType == "WeaponShop" then panel = guiCreateWindow(510, 197, 352, 396, "Arms Dealer", false) guiWindowSetSizable(panel, false) armaA = guiCreateButton(10, 28, 129, 30, "M4", false, panel) armaB = guiCreateButton(10, 68, 129, 30, "AK-47", false, panel) armaC = guiCreateButton(10, 108, 129, 30, "Sniper", false, panel) armaD = guiCreateButton(10, 148, 129, 30, "Grenade", false, panel) armaE = guiCreateButton(10, 188, 129, 30, "Tec-9", false, panel) armaF = guiCreateButton(10, 228, 129, 30, "Uzi", false, panel) armaG = guiCreateButton(10, 268, 129, 30, "Sawn-Off", false, panel) armaH = guiCreateButton(10, 308, 129, 30, "Silenced", false, panel) armaI = guiCreateButton(10, 348, 129, 30, "Deagle", false, panel) cerrar = guiCreateButton(166, 25, 169, 352, "Close", false, panel) guiSetFont(cerrar, "sa-gothic") showCursor (true) addEventHandler ("onClientGUIClick", armaA, armaAA, false) addEventHandler ("onClientGUIClick", armaB, armaBB, false) addEventHandler ("onClientGUIClick", armaC, armaCC, false) addEventHandler ("onClientGUIClick", armaD, armaDD, false) addEventHandler ("onClientGUIClick", armaE, armaEE, false) addEventHandler ("onClientGUIClick", armaF, armaFF, false) addEventHandler ("onClientGUIClick", armaG, armaGG, false) addEventHandler ("onClientGUIClick", armaH, armaHH, false) addEventHandler ("onClientGUIClick", armaI, armaII, false) addEventHandler ("onClientGUIClick", cerrar, cerrarr, false) end end) function cerrarr ( hitElement ) showCursor ( false ) guiSetVisible (panel, false ) end function armaAA ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaAA", localPlayer ) end function armaBB ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaBB", localPlayer ) end function armaCC ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaCC", localPlayer ) end function armaDD ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaDD", localPlayer ) end function armaEE ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaEE", localPlayer ) end function armaDD ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaDD", localPlayer ) end function armaFF ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaFF", localPlayer ) end function armaGG ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaGG", localPlayer ) end function armaHH ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaHH", localPlayer ) end function armaII ( hitElement ) showCursor ( true ) triggerServerEvent ( "armaII", localPlayer ) end
-
I have a problem with this script, i want that if the player is in the Gang (Castillo system) can get in the car, and if he is not to restrict the car vehicle = createVehicle ( 411, 1852, -1391, 13, 0, 0, 90 ) state = setVehicleDoorState ( vehicle, 1, 1 ) setVehicleDamageProof ( vehicle, true ) function lockPrivate( player, seat, jacked ) if ( getElementData ( player, "gang" ) == "SWAT" ) then cancelEvent ( ) outputChatBox ( "This car is Locked For SWAT!", player, 0, 245, 82, false ) else outputChatBox ( "Welcome!", player, 0, 255, 0, false ) end end addEventHandler ( "onVehicleStartEnter", vehicle, lockPrivate )
-
Ok, Nice but i want other skin for Sub Leaders and leaders how could i restrict it?
-
Hello i need you help for it. I want to rescrict This Job with your gang system createTeam ( "Official Squad", 0, 0, 255 ) function aceptarr () local theTeam = getTeamFromName ( "Official Squad" ) if ( theTeam ) then setPlayerTeam ( source, theTeam ) setPlayerNametagColor ( source, 0, 0, 255 ) setElementModel ( source, 285 ) giveWeapon ( source, 31, 550 ) giveWeapon ( source, 23, 550 ) giveWeapon ( source, 3, 550 ) giveWeapon ( source, 29, 550 ) giveWeapon ( source, 46, 550 ) giveWeapon ( source, 41, 5000 ) giveWeapon ( source, 34, 550 ) end end end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", root, aceptarr ) i don't know how to do it I tried it but i don't know what arguments to use
-
Wich are the arguments? createTeam ( "Official Squad", 0, 0, 255 ) function aceptarr (thePlayer) if getAccountGang (thePlayer, SWAT) then local theTeam = getTeamFromName ( "Official Squad" ) if ( theTeam ) then setPlayerTeam ( source, theTeam ) setPlayerNametagColor ( source, 0, 0, 255 ) setElementModel ( source, 285 ) giveWeapon ( source, 31, 550 ) giveWeapon ( source, 23, 550 ) giveWeapon ( source, 3, 550 ) giveWeapon ( source, 29, 550 ) giveWeapon ( source, 46, 550 ) giveWeapon ( source, 41, 5000 ) giveWeapon ( source, 34, 550 ) end end end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", root, aceptarr ) doesn't works
-
Wich are the arguments? createTeam ( "Official Squad", 0, 0, 255 ) function aceptarr (thePlayer) if getAccountGang (thePlayer, SWAT) then local theTeam = getTeamFromName ( "Official Squad" ) if ( theTeam ) then setPlayerTeam ( source, theTeam ) setPlayerNametagColor ( source, 0, 0, 255 ) setElementModel ( source, 285 ) giveWeapon ( source, 31, 550 ) giveWeapon ( source, 23, 550 ) giveWeapon ( source, 3, 550 ) giveWeapon ( source, 29, 550 ) giveWeapon ( source, 46, 550 ) giveWeapon ( source, 41, 5000 ) giveWeapon ( source, 34, 550 ) end end end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", root, aceptarr ) doesn't works
-
Wich are the arguments?
-
How Could i strict a Job with This gang system only members that are in Castillo's (Solidsnake) gang system
-
sure, createPed (float x, float y, float z)
-
Hello guys this time I created some peds and when i start the resource the Ped is some Distance from marker i don't know why it happens Someone could help me please?
