Jump to content

AlphaMark

Members
  • Posts

    60
  • Joined

  • Last visited

AlphaMark's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. AlphaMark

    Need help

    Hey, I made a script containing this: local route = { {283.33124, 1409.90393, 10.40879}, {-1970.61511, -859.24579, 32.02344}, {-2324.64600, -1653.37061, 483.70313}, {2799.31885, 2582.04321, 10.82031}, {2745.05957, -2431.14282, 13.65159} } and this in a function: currentIndex = math.random(1,#route) marker = createMarker(unpack(route[currentIndex]), 'checkpoint', 2, 255, 255, 0, 255) Though it is not working, It is not creating a marker
  2. AlphaMark

    Exports

    So i should make a client side script for this export?
  3. AlphaMark

    Exports

    Hey, I'm trying to get an export that checks if the player is staff but i get a error message all the time: Failed to call "{MS}Duty:isStaff" Script i'm trying to export from: function isStaff(name) if ( not name ) then return false; end for i,v in ipairs(staffs) do if getAccountName(name) == v then return true end end return false end addEvent ( getResourceName ( getThisResource ( ) )..":isStaff", true ) addEventHandler ( getResourceName ( getThisResource ( ) )..":isStaff", root, isStaff What i use for exporting: local name = getPlayerName(localPlayer) if exports["{MS}Duty"]:isStaff(name) == true then Btw the export is added to the meta like this: function="isStaff" type="server" />
  4. If i do it like this: setWorldSoundEnabled(17 [index = 10], false) Then i still get an error. Same with: setWorldSoundEnabled(17, [index = 10] false) Same with: setWorldSoundEnabled(17 [index = 10,] false)
  5. unexpected symbol near '[' in this line setWorldSoundEnabled(17, [index = 10,] false)
  6. Im getting this error showsound will have no effect because development mode is off But the development mode is activated by this script: addCommandHandler( "devmode", function () setDevelopmentMode ( true ) end )
  7. How can i turn the siren lights on but not the siren sounds?? I found this page... https://wiki.multitheftauto.com/wiki/Ge ... irenParams
  8. I mean the lights going on and off.
  9. Wont that also remove the lights?
  10. Okay, So i want to make an costom siren sound for all police vehicles. And i want the orriginal siren sound to be muted. How can i do that?
  11. AlphaMark

    Cars

    Okay so i want to create 1 infernus and an seasparrow attached to each other. but i also want to control the infernus and the seasparrow. Atm i can only control OR the seasparrow OR the infernus. Help please?
  12. AlphaMark

    Problem

    I have this line: for i,v in ipairs(getElementsWithinMarker(crimMarker)) do And it gives this error: attempt to call global'getElementsWithinMarker'(a nil value) Do u know why?
  13. Bad argument @ CrateMarker
×
×
  • Create New...