-
Posts
2,947 -
Joined
-
Last visited
Everything posted by JR10
-
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 )
-
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
-
He's only using it private.
-
"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.
-
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>
-
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.
-
You will need scripting knowledge to do that: Start to learn: https://wiki.multitheftauto.com/wiki/Main_Page
-
If I'm right, you can't do that with ACL, use setElementData getElementData setAccountData getAccountData
-
No problem.
-
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 )
-
It's not possible yet. It's only possible to import TXD, you can't replace models for skins yet.
-
You are using it client side. It's only server side.
-
Finally, it's ready.
-
addCommandHandler("rsp", function(player) kickPlayer(player, "KICK MESSAGE HERE") end) Next time, try something yourself first.
-
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.
-
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>
-
Yes, it changes his position to the specified coordinates.
-
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.
-
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.