-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
ok, I'll make a full script.. here: addCommandHandler("sting", function(player) if (player) then local x, y, z = getElementPosition(player) spike = createObject(2892,x+2,y+2,z-1) local x2, y2, z2 = getElementPosition(spike) blow = createColRectangle(x2, y2, z2, 3.0,3.0) if (getElementType("vehicle")) then local pveh = getPedOccupiedVehicle(player) if (getVehicleWheelStates(pveh) == false) then setVehicleWheelStates(pveh,1,1,1,1) elseif (getVehicleWheelStates(pveh) == 1,1,1,1) then setVehicleWheelStates(pveh,2,2,2,2) end end end end) EDIT: Thanks...
-
try this: addEventHandler("onClientTrailerAttach", getRootElement(), function() cancelEvent() end)
-
He should be able to figure out the rest of the script...
-
SAES made one... I don't know the spike strips id but i'll give you the script: function spike() local vehicle = getPedOccupiedVehicle(source) if (getElementType("vehicle")) then setVehicleWheelStates(vehicle,1,1,1,1) end end
-
Here's my Forum that I made for portforwarding the ports: https://forum.multitheftauto.com/viewtopic.php?f=114&t=33722&hilit=+Ports I'm not sure about mods,but I know when you load them on the server you have to replace something... and the maps is easy... If you created a map in MTA map editor there should be a map in the resources folder... you could just type in in the meta of your main script.
-
SOOOOOOOOOOOOOOOO, you don't have GTA SA and your owning/hosting a server.... Hmmmmmmmmmmmmmm. Just kidding . It depends about the connection you have, unless you downloaded a wrong server program...
-
* Jesseunit takes a look in the server-side script.... a few minutes later: LOL............ Ur funnnnnnnnnnnnnnnnny. EDIT: OOOOOOk, sorry everyone... That was seriously funny to me...
-
LOL EDIT: Sorry again...........
-
Wadde, get back to the server... :) LOL Joking but the gun blips are already on the server... I've fixed it...
-
Sorry, I 4got to remove the post... It never worked because i 4got to compile it...
-
No shouldn't hate you in these forums... Sometime people just confuse other people and say there a fail... but really them selves is a fail.
-
but the area_name is still shown...
-
THE SAVE RESOURCE Features Saves the player position Saves the player Vehicle Descriptions You could type in /save and get your player position, skin, Dimension, and the Interior. but if you om a vehicle it get's the position, model, and the rotation. It's in the same order as the spawnPlayer x, y, z, rotation = 0, skinID = 0, interior = 0, dimension = 0 ) -- and createVehicle ( model, x, y, z, rx, ry, rz,) DOWNLOAD https://community.multitheftauto.com/index.php?p=resources&s=details&id=2561
-
I have this same problem... When the text shown, I want it to disappear until they enter another zone... Client-side only: local rootElement = getRootElement() local screenWidth, screenHeight = guiGetScreenSize() -- Get the screen resolution function createText ( ) local playerX, playerY, playerZ = getElementPosition( getLocalPlayer() ) -- Get player's coordinates. local playerZoneName = getZoneName( playerX, playerY, playerZ ) -- Get name of the player's zone. dxDrawText( playerZoneName, 0.95, screenHeight-37, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) -- Draw Zone Name text shadow. dxDrawText( playerZoneName, 0.95, screenHeight-40, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown" ) -- Draw Zone Name text. end function HandleTheRendering() showPlayerHudComponent("area_name", false) addEventHandler("onClientRender",rootElement, createText) -- keep the text visible with onClientRender. setTimer(removeEventHandler,1500,0,"onClientRender",rootElement,createText) end addEventHandler("onClientResourceStart",rootElement, HandleTheRendering)
-
This is the Best Resource I'v ever got...
-
What about in client-side?
-
Thanks Castillo, it works now And JR10 thanks for trying to help me.
-
Error: [2011-07-26 07:47:44] WARNING: \server.lua:20: Bad argument @ 'addEventHandler' [2011-07-26 07:47:44] WARNING: \server.lua:33: Bad argument @ 'addEventHandler' [2011-07-26 07:47:44] WARNING: \server.lua:98: Bad argument @ 'addEventHandler' [2011-07-26 07:47:44] WARNING: \server.lua:111: Bad argument @ 'addEventHandler' [2011-07-26 07:47:44] WARNING: \server.lua:121: Bad argument @ 'addEventHandler' addEventHandler("onResourceStart",resourceroot, function() samsphere = createColSphere(208.21,1980.58,28.89,300) samsphere1 = createColSphere(208.21,1980.58,28.89,1500) warningsphere = createColSphere(208.21,1980.58,28.89,500) samsite1 = createObject(3884,113.28,1814.28,32.45,0,0,309) samsite2 = createObject(3884,103.83,1901.12,32.45,0,0,309) samsite3 = createObject(3884,161.99,1933.18,32.45,0,0,145) samsite4 = createObject(3884,233.4,1934.85,32.45,0,0,145) samsite5 = createObject(3884,267.36,1895.48,32.45,0,0,145) samsite6 = createObject(3884,166.03,1850.09,32.45,0,0,350) samsite7 = createObject(3884,262.04,1807.5,32.45,0,0,37) end) addEventHandler("onColShapeHit", warningsphere, function(player) if (getElementType(player)) then local account = getPlayerAccount(player) local accountname = getAccountName(account) if getPlayerTeam(getTeamFromName("Military")) and isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Army" ) ) then outputChatBox("*RESTRICTED AREA*:Authorized to land at Area 69",player,0,0,255) else outputChatBox("*RESTRICTED AREA*:YOU ARE FLYING IN A NO FLY ZONE! TURN BACK!",player,255,0,0) end end end) addEventHandler("onColShapeHit", samsphere, function(player) if (getElementType(player)) then local account = getPlayerAccount(player) local accountname = getAccountName(account) if getPlayerTeam(getTeamFromName("Military")) and isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Army" ) ) then outputChatBox("*RESTRICTED AREA*: Third Check, Welcome Back. ",player,0,0,255) else outputChatBox("*RESTRICTED AREA*:YOU ARE STILL FLYING IN A NO FLY ZONE! YOU WILL BE SHOT DOWN!",player,255,0,0) addEventHandler("onClientRender",getRootElement(),fireMissiles) outputChatBox("WARNING: SAMS HAVE BEEN FIRED NOW!",player,255,0,0) end end end) addEventHandler("onColShapeLeave", warningsphere, function(player) local account = getPlayerAccount(player) local accountname = getAccountName(account) if (getElementType(player)) then if getPlayerTeam(getTeamFromName("Military")) and isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Army" ) ) then outputChatBox("*RESTRICTED AREA*: BYE! ",player,0,0,255) else outputChatBox("*RESTRICTED AREA*:GOOD CHOICE!",player,255,0,0) end end end) addEventHandler("onColShapeLeave", samsphere1, function(player) if (getElementType(player)) then if (missiles == true) then removeEventHandler("onClientRender",getRootElement(),fireMissiles) missiles = false end end end) addEventHandler("onColShapeLeave", samsphere, function(player) if (getElementType(player)) then local account = getPlayerAccount(player) local accountname = getAccountName(account) if getPlayerTeam(getTeamFromName("Military")) and isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Army" ) ) then outputChatBox("*RESTRICTED AREA*: GET THEM! ",player,0,0,255) else outputChatBox("*RESTRICTED AREA*: SOOOOOOOOOOOOOOO LUCKY!",player,255,0,0) end end end)
-
I tried it and it said the same thing...
-
if this is a race then, try: plveh = getPedOccupiedVehicle(getLocalPlayer()) if plveh and getVehicleName(plveh) == "Infernus" then rx1,ry1,rz1 = getVehicleRotation(plveh) setVehicleRotation(plveh, rx1, ry1, rz1+20) setVehicleFrozen(plveh,true) end
-
I'm not sure, but it might work: addEventHandler("onClientGUIClick",takeButton,spawnTheCar,false) function spawnTheCar() local row,col = guiGridListGetSelectedItem(vehList) if row and col and row ~= -1 and col ~= -1 then local vehicleName = guiGridListGetItemText(vehList, row, col) triggerServerEvent("vehicle_spawn",getLocalPlayer(),getVehicleModelFromName(vehicleName)) end end
-
ooh, ya here: addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), function() samsphere = createColSphere(208.21,1980.58,28.89,300) samsphere1 = createColSphere(208.21,1980.58,28.89,1500) warningsphere = createColSphere(208.21,1980.58,28.89,500) samsite1 = createObject(3884,113.28,1814.28,32.45,0,0,309) samsite2 = createObject(3884,103.83,1901.12,32.45,0,0,309) samsite3 = createObject(3884,161.99,1933.18,32.45,0,0,145) samsite4 = createObject(3884,233.4,1934.85,32.45,0,0,145) samsite5 = createObject(3884,267.36,1895.48,32.45,0,0,145) samsite6 = createObject(3884,166.03,1850.09,32.45,0,0,350) samsite7 = createObject(3884,262.04,1807.5,32.45,0,0,37) end)