BinSlayer1
Members-
Posts
491 -
Joined
-
Last visited
Everything posted by BinSlayer1
-
Well, not necessarily since the wiki doesn't explain it should contain "nil". You should try "false" as well
-
first house system that I got by searching is this one: https://community.multitheftauto.com/index.php?p= ... ils&id=727 Same goes for banks, I found 2 bank systems for you here: https://community.multitheftauto.com/index.php?p= ... ails&id=54 https://community.multitheftauto.com/index.php?p= ... ls&id=2013 You should browse the community some more, interesting stuff in there! (https://community.multitheftauto.com)
-
post what you wrote and someone may then be able to help u
-
@FFS-Racing: nope, it's also set when a votemap comes down to "Don't change" . So counting how many times 'running' has been set and using it only the first time fixes this matter
-
@Wojak: So we'll check how many times the Running state has been started. local times = 0 addEvent("onRaceStateChanging",true) addEventHandler("onRaceStateChanging", getRootElement(),function ( state ) if (state == "Running") then times = times + 1 if (times == 1) then --paste your stuff here end end end) Should work since the script will revert the times variable to 0 everytime the map resource is started
-
So what's your question, or your problem? Your script seems good, it should detect the team indeed.. So what next? What will you do?
-
isn't it "modeller" ?
-
if you're using setVehicleEngineState(vehicle,false) it will turn the engine OFF when you create a vehicle, it obviously gets created already in the state of "OFF" .. So changing something that is off to off makes no difference (or sense) Try "true"
-
rating = getMapRating(mapName) rating = rating.average this?
-
https://wiki.multitheftauto.com/wiki/RedirectPlayer https://wiki.multitheftauto.com/wiki/AddCommandHandler
-
Instead of: local rank = getPlayerRank(player) use this: local rank = exports.race:getPlayerRank(player) I just read on https://wiki.multitheftauto.com/wiki/RU/Resource:Race that getPlayerRank is an exported function Ooh and delete your getPlayerRank function
-
https://wiki.multitheftauto.com/wiki/IsC ... nputActive
-
Just make a new resource, call it 'test' Put the following code in a test.lua file MillerTurmRauf = createMarker ( 0, 15, 4, "cylinder", 1, 255, 0, 0 ) MillerTurmRunter = createMarker ( 0, 0, 4, "cylinder", 1, 255, 0, 0 ) function turmrauf ( player ) if (getElementType(player) == "player") and (isPedInVehicle(player) == false) then setElementPosition ( player, 10, 0, 4 ) end end addEventHandler ( "onMarkerHit", MillerTurmRauf, turmrauf ) function turmrunter ( player ) if (getElementType(player) == "player") and (isPedInVehicle(player) == false) then setElementPosition ( player, 10, 15, 4 ) end end addEventHandler ( "onMarkerHit", MillerTurmRunter, turmrunter ) create a file called meta.xml and put the following in it: <meta> <script src="test.lua" /> </meta> Run the 'play' gamemode. Go to coordinates 0,0,0 You should see 2 markers nearby Test each of them out.. Then adjust the script to your needs.. But don't put the same x,y,z location from the markers to the setElementPosition argument PS: I tested the code and it works
-
https://wiki.multitheftauto.com/wiki/Debugging Use the debugging strategies described in the link above to see what goes wrong
-
is that the full code? You still need createMarker() and is your meta.xml set up right? it needs to have this line:
-
onPlayerLogout , fade his camera to black and optionally set his position to 0,0,0 and freeze him if you don't want his element to interact anymore.. Btw, I dont think you can freeze players who are in the state of "falling" so you could warp his ass into a vehicle and freeze the vehicle at 0,0,0 if this is the case https://wiki.multitheftauto.com/wiki/FadeCamera
-
The script itself works.. (I tested) but what you're doing is send the player to a location where there (exactly there) is ANOTHER marker that would send again the player to the previous marker , this is why it looks like it doesn't work because you get sent back from where u came I believe you should reconsider the x,y,z location of where you want to teleport the player
-
https://wiki.multitheftauto.com/wiki/OnMarkerHit read up again ^ Your parameter is not neccessarily a player.. It's just an element, hence you'll need an extra check to see if the element is indeed a player.. Change this: if getPedOccupiedVehicle ( player ) == false then To this: if (getElementType(player) == "player") and (isPedInVehicle(player) == false) then
-
/deletetime [number] e.g: /deletetime 5 ps: need to be logged in as admin and playing that exact map
-
Test yourself how long it takes for nitro to finish up. Should be around 20 seconds or so.. And then use a timer with addVehicleUpgrade every x seconds so it gets refilled everytime Check this: https://wiki.multitheftauto.com/wiki/AddVehicleUpgrade And this: https://wiki.multitheftauto.com/wiki/SetTimer
-
https://wiki.multitheftauto.com/wiki/GetMapName this one works nice and it's a lot easier
-
https://wiki.multitheftauto.com/wiki/OnPlayerDamage Says here you can't cancel serverside onPlayerDamage so you may have to use clientside onClientPlayerDamage
-
try https://community.multitheftauto.com/index.php?p= ... ils&id=468
-
getPlayerCountry? I dont think this function is built-in mta you'll have to script the function i'm afraid
