Jump to content

yMassai

Members
  • Posts

    382
  • Joined

  • Last visited

Everything posted by yMassai

  1. 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.
  2. yMassai

    Marker

    sorry did not quite understand if you do not care to explain further. I like to take my doubts. you do not need to explain if you want.
  3. yMassai

    Marker

    how could I do this?
  4. yMassai

    Marker

    local busmarkers = { {1824.73217,-1852.47290,12.41406} {1824.53881,1675.97546,12.38281} {1855.18969,-1405.53662,12.39062} {1661.61486,-1295.06185,13.43967} } my lack of attention. would be a route to the bus driver.
  5. yMassai

    Marker

    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?
  6. yMassai

    Marker

    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}, ...
  7. yMassai

    Garages

    Cool, i have not tested the operation of the script. You have added a note explanatory and a big image on the topic. I think you could be if expressed in few words.
  8. 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.
  9. ho thanks, yes work
  10. 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)
  11. 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...
  12. 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?
  13. could you give me a list of functions should I use? I'm still learn and thank you for helping me.
  14. want this work as a job. the player picks up the skin temporarily and when you leave employment recovers own skin.
  15. addEventHandler ( "JobCaminhoneiro", getRootElement(), function () setElementModel(source, 202) end ) how can I give temporarily using SetTimer?
  16. 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
  17. I dont understand you. This resource is your or is of community? which resource u said?
  18. 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?
  19. I think that was not sarcastic. Its a good initiative, maybe you notify the team MTA to be introduced in the next mta version?
  20. 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.
  21. 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.
  22. Por favor evite de fazer postagens duplas.
  23. yMassai

    GetSkin

    thanks, this is working. I'm learning better, it was just a lack of attention and organization. sorry for bad english.
×
×
  • Create New...