Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. JR10

    markers

    You can make it client side, but, needs edit, message will only appear for hitElement, onClientMarkerHit not onMarkerHit, local sMarker = createMarker (1618.6726074219, 1448.3284912109, 30.770175933838, 'cylinder', 7.0, 255, 0, 0, 150) -- create myMarker function MarkerHit( hitElement, matchingDimension ) -- define MarkerHit function for the handler local elementType = getElementType( hitElement ) -- get the hit element's type outputChatBox( elementType.." inside sMarker", 255, 255, 0 ) -- attach the element's type with the text, and output it setElementPosition ( hitElement, 1618.6726074219, 1448.3284912109, 30.770175933838 ) end addEventHandler( "onClientMarkerHit", sMarker, MarkerHit )
  2. use math.round function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end
  3. He's only using it private.
  4. "STAY WITHIN THE WORLD BOUNDARIES" Literally. If I'm right that is what causing the problem, lol, you can't create something outside the GTA world boundaries.
  5. Search for this in mtaserver.conf: <!-- Comma seperated list of disabled anti-cheats. e.g. To disable anti-cheat #2 and #3, use: 2,3 --> <disableac></disableac> Edit it to be: <!-- Comma seperated list of disabled anti-cheats. e.g. To disable anti-cheat #2 and #3, use: 2,3 --> <disableac>1,2,3,4,5,6,7,8</disableac>
  6. JR10

    Help please.

    If I'm right, usually this happens, because of a bad name for a resource or a file, remove spaces and any symbol (exept _ and -), of any file or resource name.
  7. You will need scripting knowledge to do that: Start to learn: https://wiki.multitheftauto.com/wiki/Main_Page
  8. If I'm right, you can't do that with ACL, use setElementData getElementData setAccountData getAccountData
  9. This is fucked up. function car_check ( theVehicle, seat, jacked ) -- when someone enters a vehicle id = getElementModel ( theVehicle ) -- get the ID of the vehicle if id == 433 or id == 427 or id == 470 or id == 432 then if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "militar" ) ) then outputChatBox ("REMEMBER: This is a government car.") else local pX, pY, pZ = getElementPosition (source) createExplosion (pX, pY, pZ, 2, source) outputChatBox ("You aren't a militar! Area 51 Security sistem detected you and a rocket was going directly to your head.") end end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), car_check )
  10. JR10

    Models 4 skins

    It's not possible yet. It's only possible to import TXD, you can't replace models for skins yet.
  11. You are using it client side. It's only server side.
  12. addCommandHandler("rsp", function(player) kickPlayer(player, "KICK MESSAGE HERE") end) Next time, try something yourself first.
  13. checkdbregiser = executeSQLSelect ( "playersave", "playerdb", "playerdb = '" .. namecheckregister .. "'" ) if ( type( checkdbregiser ) == "table" and #checkdbregiser == 0 ) or not checkdbregiser then outputChatBox ( "Your are login as Guest! Use /register", source ) else kickplayertimer = setTimer( kickPlayer, 20000, 1, source, "register name kick" ) outputChatBox ( "You are a member use /login in the next 20sec!!", source ) end end addEventHandler ( "onPlayerJoin", getRootElement(), registercheck ) Why this "namecheckregister" in the kickPlayer function. Please read the function's arguments before using it.
  14. JR10

    Vehicles

    Yes, you can't.
  15. JR10

    Vehicles

    There is no function for that, that's something in GTA not MTA. However you can use this function to get the vehicle compatible upgrades: getVehicleCompatibleUpgrades
  16. JR10

    markers

    type = script ? o_O You don't know what you are doing, that script contains both server and client. local sMarker = createMarker (1618.6726074219, 1448.3284912109, 30.770175933838, 'cylinder', 7.0, 255, 0, 0, 150) -- create myMarker function MarkerHit( hitElement, matchingDimension ) -- define MarkerHit function for the handler local elementType = getElementType( hitElement ) -- get the hit element's type outputChatBox( elementType.." inside sMarker", getRootElement(), 255, 255, 0 ) -- attach the element's type with the text, and output it setElementPosition ( hitElement, 1618.6726074219, 1448.3284912109, 30.770175933838 ) end addEventHandler( "onMarkerHit", sMarker, MarkerHit ) WTF a marker doing in the meta.xml <meta> <info type="map" version="1.0.0" /> <map src="beachparty.map" dimension="0" /> <script src="markerS.lua" type="server" /> </meta>
  17. JR10

    markers

    Yes, it changes his position to the specified coordinates.
  18. JR10

    markers

    That's why I made a comment beside so you CAN read it. For fading to black before warping, and fading in again. It's used a lot with warping so though of adding it.
  19. JR10

    markers

    Well, you welcome.
  20. JR10

    Sv . static

    What's so hard about triggering an event. What you are doing is triggering a function that doesn't exist. use: triggerServerEvent triggerClientEvent Check the examples and the Introduction To Scripting GUI in the wiki for more details about the functions.
×
×
  • Create New...