-
Posts
382 -
Joined
-
Last visited
Everything posted by yMassai
-
Nobody makes scripts for free. If you want scripts for free without any physical effort, pay a scripter and I indicate my friend castillo. You can ask for tips about the script about what functions to use.
-
good scripters will earn a moderator?
-
local markers = { {1824.73217,-1852.47290,12.41406} {1824.53881,1675.97546,12.38281} {1855.18969,-1405.53662,12.39062} {1661.61486,-1295.06185,13,43967} } function busmakers () return unpack (markers [ math.random ( #markers ) ] ) end addEvent ( "createMarcaEvent", true ) function Marca () x, y, z = busmakers () MarkerB = createMarker ( x, y, z, "cylinder", 2.0, 255, 255, 0, 85, localPlayer ) Blip = createBlipAttachedTo ( MarkerB, 51, localPlayer ) end addEventHandler ( "createMarcaEvent", root, Marca ) sorry did not put the event 'function busmakers () return unpack (markers [ math.random ( #markers ) ] ) end' how can I use on a non-random?
-
local markers = { {1824.73217,-1852.47290,12.41406} {1824.53881,1675.97546,12.38281} {1855.18969,-1405.53662,12.39062} {1661.61486,-1295.06185,13,43967} } function Marca () x, y, z = busmakers () MarkerB = createMarker ( x, y, z, "cylinder", 2.0, 255, 255, 0, 85, localPlayer ) Blip = createBlipAttachedTo ( MarkerB, 51, localPlayer ) end addEventHandler ( "createMarcaEvent", root, Marca ) I want to create not random marks, which obey the order posted. exemple : 1 {1824.73217,-1852.47290,12.41406}, 2 {1824.53881,1675.97546,12.38281}, ...
-
callum, this resource has several flaws. you can build a resource and if you have questions or find difficulties, you can post in the page Scripting the resource.
-
Dont work. Why u put getRootElement()?? i know are from server-side but have a marker to open the window getcami = createMarker( -50.28254, -1142.70104, 0.12812, "cylinder", 2.0, 255, 255, 0, 170)
-
function startMarker( hitPlayer ) if ( getElementType(hitPlayer) == "player" and hitPlayer == localPlayer and not(isPedInVehicle(localPlayer)) ) then elseif (getElementData ( source, "Occupation", "Trucker", true )) then guiSetVisible ( carrosw, true ) showCursor(true) end end addEventHandler ( "onClientMarkerHit", getcami, startMarker) '-' how error, i dont know...
-
trcukJob = setElementData( source, "Occupation", "Trucker", true ) function startMarker( hitPlayer ) if ( getElementType(hitPlayer) == "player" and hitPlayer == localPlayer and not(isPedInVehicle(localPlayer)) ) then guiSetVisible ( carrosw, true ) showCursor(true) end end addEventHandler ( "onClientMarkerHit", getcami, startMarker) I want the window open only if the player have the occupation. What can I do?
-
could you give me a list of functions should I use? I'm still learn and thank you for helping me.
-
want this work as a job. the player picks up the skin temporarily and when you leave employment recovers own skin.
-
addEventHandler ( "JobCaminhoneiro", getRootElement(), function () setElementModel(source, 202) end ) how can I give temporarily using SetTimer?
-
carros [ source ] = createVehicle ( modelo, -50.28254, -1142.70104, 1.62812, 0, 0, 65 ) function onExitVehicle () if ( isElement ( carros [ source ] ) ) then triggerClientEvent("destroytruck",getRootElement ( )) end end addEventHandler ( "onPlayerVehicleExit", getRootElement(), onExitVehicle ) function onEnterVehicle () if ( isElement ( carros [ source ] )) then triggerClientEvent("destroytruck",getRootElement ( )) triggerClientEvent ( "createMarcaEvent", getRootElement ( ) ) end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), onEnterVehicle ) working
-
I dont understand you. This resource is your or is of community? which resource u said?
-
carros [ source ] = createVehicle ( modelo, -50.28254, -1142.70104, 1.62812, 0, 0, 65 ) function onEnterVehicle () if .. triggerClientEvent ( "createMarcaEvent", localPlayer ) end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), onEnterVehicle ) function onExitVehicle () if .. triggerClientEvent("destroytruckt",localPlayer) end end addEventHandler ( "onPlayerVehicleExit", getRootElement(), onExitVehicle ) when the player enter the vehicle the desired event occurs. what functions can I use to identify the player get in and out of the vehicle?
-
I think that was not sarcastic. Its a good initiative, maybe you notify the team MTA to be introduced in the next mta version?
-
https://community.multitheftauto.com/ind ... ls&id=5194 https://community.multitheftauto.com/ind ... ls&id=5193 https://community.multitheftauto.com/ind ... ls&id=5192 https://community.multitheftauto.com/ind ... ls&id=5191 https://community.multitheftauto.com/ind ... ls&id=5189 https://community.multitheftauto.com/ind ... ls&id=5188 https://community.multitheftauto.com/ind ... ls&id=5187 https://community.multitheftauto.com/ind ... ls&id=5186 https://community.multitheftauto.com/ind ... ls&id=5185 https://community.multitheftauto.com/ind ... ls&id=5184 https://community.multitheftauto.com/ind ... ls&id=5183 https://community.multitheftauto.com/ind ... ls&id=5182 Don't Resource information or just indicating the version of the resource and the author.
-
local price_m4 = 18000 local bullet_m4 = 300 function BuyWeaponOnServer(weapon_name) player_money = getPlayerMoney(source) player_account = getPlayerAccount(source) if (getAccountData(player_account, "GunLicense")) then if(weapon_name == "weapon_m4") then if(player_money >= price_m4) then takePlayerMoney(source, price_m4) setAccountData(player_account, "m4data", true) if(not getAccountData(player_account, "m4data")) then return if(player_money >= bullet_m4) then giveWeapon(source, 31, 50) takePlayerMoney(source, bullet_m4) outputChatBox("Você comprou uma M4.", source, 0, 255, 0) else outputChatBox("Você não tem dinheiro para comprar uma M4.", source, 255, 0, 0) end end end end addEvent("onClientBuyWeapon", true) addEventHandler("onClientBuyWeapon", getRootElement(), BuyWeaponOnServer) function BuyWeaponLicense() player_money = getPlayerMoney(source) player_account = getPlayerAccount(source) local license_price = 55000 if(not getAccountData(player_account, "GunLicense")) then if(player_money >= license_price) then setAccountData(player_account, "GunLicense", true) takePlayerMoney(source, license_price) outputChatBox("Agora você tem uma Licença para portar Armas!", source, 0, 255, 0) else outputChatBox("Você não tem dinheiro pra comprar a Licença!", source, 255, 0, 0) end else outputChatBox("Você já tem uma licença para portar Armas!", source, 255, 0, 0) end end addEvent("onClientBuyLicense", true) addEventHandler("onClientBuyLicense", getRootElement(), BuyWeaponLicense) I wanted the player buy the license, then the gun and after bullets.
-
Por favor evite de fazer postagens duplas.