Jump to content

sora+

Members
  • Posts

    46
  • Joined

  • Last visited

About sora+

  • Birthday 08/09/1993

Details

  • Location
    United States , California
  • Occupation
    College currently

Recent Profile Visitors

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

sora+'s Achievements

Rat

Rat (9/54)

0

Reputation

  1. sora+

    onDoubleCLick

    Script is working, but double clicking isn't..
  2. sora+

    onDoubleCLick

    So, i got a little problem with this script. For some reason the vehicle won't spawn when i do double click on it. neither the server-side event. Here's the code: Server: addEvent("spawnCarGS", true) addEventHandler("SpawnCarGS", root, function( Vehicle, localPlayer ) outputChatBox("tits", root) local x, y, z = getElementPosition( localPlayer ) vModel = getElementData(v, "vehicle.datavModel") vName = getElementData(v, "vehicle.datavName") colr1 = getElementData(v, "vehicle.datacolr1") colg1 = getElementData(v, "vehicle.datacolg1") colb1 = getElementData(v, "vehicle.datacolb1") colr2 = getElementData(v, "vehicle.datacolr2") colg2 = getElementData(v, "vehicle.datacolg2") colb2 = getElementData(v, "vehicle.datacolb2") colr3 = getElementData(v, "vehicle.datacolr3") colg3 = getElementData(v, "vehicle.datacolg3") colb3 = getElementData(v, "vehicle.datacolb3") colr4 = getElementData(v, "vehicle.datacolr4") colg4 = getElementData(v, "vehicle.datacolg4") colb4 = getElementData(v, "vehicle.datacolb4") upgrades = getElementData(v, "vehicle.dataupgrades", upgrades, true) Veh = createVehicle(vModel, x, y, z) setVehicleColor( Veh, colr1, colg1, colb1, colr2, colg2, colb2, colr3, colg3, colb3, colr4, colg4, colb4 ) warpPedIntoVehicle(localPlayer, Veh) for upgradeKey, upgradeValue in ipairs">ipairs">ipairs ( upgrades ) do addVehicleUpgrade ( Veh, upgradeValue ) end end ) Client: GarageW = guiCreateWindow(277,227,198,425,"My Garage",false) guiWindowSetSizable(GarageW,false) Add = guiCreateButton(15,389,169,22,"Add Current Vehicle",false,GarageW) GarageGL = guiCreateGridList(9,24,180,359,false,GarageW) guiGridListSetSelectionMode(GarageGL,2) Name = guiGridListAddColumn(GarageGL,"Vehicle Name",0.6) guiGridListAddColumn(GarageGL,"ID",0.2) guiSetVisible(GarageW, false) function bindF2() bindKey ("F2","down", function() if guiGetVisible(GarageW) == false then guiSetVisible(GarageW, true) showCursor(true) addEventHandler("onClientGUIClick",Add,AddF) else guiSetVisible(GarageW, false) showCursor(false) removeEventHandler("onClientGUIClick",Add,AddF) end end ) end addEventHandler("onClientResourceStart",root,bindF2) function AddF() local v = getPedOccupiedVehicle( localPlayer ) if v then vModel = getElementModel( v ) vName = getVehicleNameFromModel( vModel ) local colr1, colg1, colb1, colr2, colg2, colb2, colr3, colg3, colb3, colr4, colg4, colb4 = getVehicleColor( v ) local upgrades = getVehicleUpgrades ( v ) setElementData(v, "vehicle.datavModel", vModel) setElementData(v, "vehicle.dataNvName", vName) setElementData(v, "vehicle.datacolr1", colr1, true) setElementData(v, "vehicle.datacolg1", colg1, true) setElementData(v, "vehicle.datacolb1", colb1, true) setElementData(v, "vehicle.datacolr2", colr2, true) setElementData(v, "vehicle.datacolg2", colg2, true) setElementData(v, "vehicle.datacolb2", colb2, true) setElementData(v, "vehicle.datacolr3", colr3, true) setElementData(v, "vehicle.datacolg3", colg3, true) setElementData(v, "vehicle.datacolb3", colb3, true) setElementData(v, "vehicle.datacolr4", colr4, true) setElementData(v, "vehicle.datacolg4", colg4, true) setElementData(v, "vehicle.datacolb4", colb4, true) setElementData(v, "vehicle.dataupgrades", upgrades, true) local RowName = guiGridListAddRow ( GarageGL ) guiGridListSetItemText ( GarageGL, RowName, Name, vName, false, false ) addEventHandler ( "onClientGUIDoubleClick", GarageGL, onDoubleClick) end end function onDoubleClick() if ( ( state == "down" ) and ( gui == true ) and ( source == GarageGL ) ) then -- get the player name from the selected row, first column local Vehicle = guiGridListGetItemText ( GarageGL, guiGridListGetSelectedItem ( GarageGL ), 1 ) triggerServerEvent("spawnCarGS",root, Vehicle, localPlayer) end end _________________ Thanks in advance.
  3. sora+

    Scores script

    maybe try getting the vehicles' last collision before being pushed to sea with another vehicle? onClientVehicleCollision other wise maybe you can get each vehicle by id, make a colsphere around it. Once the player pushes the other to sea mta will detect the colsphere and fetch you the id and name of the player..
  4. you should ask about that in the minimission forums in my humble opinion.
  5. nitro doesn't have a txd or dff LOL. Nitro uses FXP , this shader colours it. https://community.multitheftauto.com/index.php?p= ... ls&id=3119
  6. Kicking a player doesn't require ACL? n1. /kick -player-name- This resource might be useful to you. https://community.multitheftauto.com/index.php?p= ... ls&id=1069
  7. My bad , didn't notice the client-only and server-only thingy. Anyways , you can still use triggerServerEvent @ topic starter
  8. You should atleast give a try by yourself, no one here will make scripts for you.(unless they are too nice ) Use https://wiki.multitheftauto.com/wiki/GetPedWeapon -- For getting the local weapon https://wiki.multitheftauto.com/wiki/TakeWeapon -- To remove the weapon https://wiki.multitheftauto.com/wiki/AddCommandHandler -- To have a cmd for it. https://wiki.multitheftauto.com/wiki/BindKey -- To bind a key for the cmd. This function will remove a grenade if g is pressed. function removeit() Androm = getLocalPlayer() takeWeapon (Androm,16) end addCommandHandler ( "grenade", removeit ) bindKey("grenade","down"g") i hope thats what you were looking for , i seriously didn't understand what you ment.
  9. "How many people added the server to their favourites determines the server's rating" seems like a good idea to me.
  10. sora+

    Problem with my server

    Reinstall mta , this same thing happened to me when tweaking with the scoreboard.
  11. Id is specified , just didn't wanna put it here , but is doesn't seem to work for me..
  12. Hmm..Have i done something wrong? server- removeWorldModel(id,1000,-300,1556,75) removeWorldModel(id,1000,-300,1556,75) removeWorldModel(id,1000,-300,1556,75)
  13. https://wiki.multitheftauto.com/wiki/RemoveWorldModel It says: Minimum supported server 1.2.0-9.03618 Minimum supported client 1.2.0-9.03618 You guys should uptate this function for 1.3 , since i tested it on 1.3 and doesn't work for me..
  14. Hmm you should also fix your post which has my nick on it as the GTA-AR Moderator lol.
×
×
  • Create New...