Jump to content

Andres99907

Members
  • Content Count

    37
  • Joined

  • Last visited

Community Reputation

4 Neutral

About Andres99907

  • Rank
    Rat

Details

  • Gang
    GTA

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. function comprarbandito ( thePlayer, command) local playeraccount = getPlayerAccount ( source ) takePlayerMoney ( thePlayer, 500000 ) setAccountData ( playeraccount, "rc.bandito", adquirido ) end addCommandHandler ( "comprarbandito", comprarbandito ) function Banditoadquirido (_, playeraccount ) if ( playeraccount ) then local ban = getAccountData ( playeraccount, "rc.bandito" ) if ( ban ) then Banditocomprado = true end end end addEvent ( "banditobuyed", true ) addEventHandler ( "banditobuyed", getRootElement(),
  2. I'm using this script to make Thruster fly, only the Player who uses the Thruster will fly, but if other player enters to other Thruster, the script executes one more time the function and the Player in the First Thruster stop flying (because the function is executed again by the other player) I don't know how to make this script not affect the other players here is a video. Video and this the part of the script wich has the Problem: addEventHandler("onClientVehicleEnter", getRootElement(), function() if (isPedInVehicle(localPlayer) and Cars[get
  3. local themes = { "sounds/RADAR.mp3", "sounds/RADAR2.mp3", "sounds/RADAR3.mp3", } local sound = {} function Ruiner2000theme() local allVehicles = getElementsByType("vehicle") for index, veh in ipairs (allVehicles) do local model = getElementModel(veh) if model == 494 then if getVehicleEngineState(veh) then if isElement(sound[veh]) then triggerServerEvent ( "fullyloaded", resourceRoot) else local x, y, z = getElementPosition(veh) sound[veh]
  4. I'm very noob at scripting :' (, but i did this: (It's a script for the Imponte Deluxo of GTA Online) Serverside: function deluxe ( player ) local vehicle = getPedOccupiedVehicle(player) if isElement(vehicle) then if getVehicleDoorOpenRatio(vehicle,5) > 0 then setVehicleDoorOpenRatio(vehicle,5,0,ms) setVehicleDoorOpenRatio(vehicle,4,0,ms) setVehicleDoorOpenRatio(vehicle,0,0,ms) else setVehicleDoorOpenRatio(vehicle,5,1,ms) setVehicleDoorOpenRatio(vehicle,4,1,ms) setVehicleDoorOpenRatio(vehicle,0,1,ms) end end end addEvent( "deluxo", true ) addEventH
  5. last week I had a login panel that worked with HTML, the panel had a background video and music, but now it appears on white background and without sound, I tried to put another HTML panel and the same thing happens, both use videos in webm format and sound in ogg format, I do not know exactly what happens D :
  6. It worked!! I really appreciate it very much
  7. This is the script: function check ( player, seat, jacked ) if getElementData(source, "privado") then if getElementData(source, "dueño") == getAccountName(getPlayerAccount(player)) then else cancelEvent() outputChatBox("Este vehículo no es tuyo.", player) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), check ) function adueñar(playerSource, player, cmd, who) local who = getPlayerName(playerSource), playerSource(who) local co = getPedOccupiedVehicle(who) setElementData(co, "privado", true) setElementData(co, "dueño", getPlayerName(who)) outputChatBox("Este auto ahora
  8. function check ( player, seat, jacked ) if getElementData(source, "policeman") then if getElementData(source, "owner") == getAccountName(getPlayerAccount(player)) then else cancelEvent() outputChatBox("You need to be a Policeman", player) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), check ) function setcop(player, cmd, who) local who = getPlayerName(playersource), setcop(who) local co = getPedOccupiedVehicle(who) setElementData(co, "policeman", true) setElementData(co, "owner", getPlayerName(who)) outputChatBox("The Policeman:"..getPla
  9. My script* but i can't change the title
  10. I'm trying to make a resource that obtain the name of a player like this line: local who = getPlayerName(playerSource), playerSource(who) but i got this GetPlayerName [expected element at argument 1, got nil] lua:13: attempt to call global 'playerSource' (a nil value) I need help :'c the script is of the type server
  11. For a long time he tried to make the players of my server have their own cars and another player can not remove them but I do not know how to do it, I made a resource that affects the doors, but it was not useful and failed in a certain thing,: c Help
×
×
  • Create New...