-
Posts
18 -
Joined
-
Last visited
Details
-
Gang
∞ Infinity ∞
-
Location
∞ Infinity ∞
-
Occupation
∞ Infinity ∞
-
Interests
∞ Infinity ∞
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Jani1337's Achievements
Civilian (7/54)
0
Reputation
-
imo it happens because of the jump out animation, and the detection not being fast enough
-
works well most of the times, but if they spam the get out button before hitting the water it still bugs out.
-
Doesn't work, if they press it just before it happens it still bugs out.
-
Hello! I've been working on a script that teleports you to the last saved position when you fall into water with your car. That works great, but i would like to make it teleport you to the nearest road, as if you fall thru the ground, how could i do that? Teleporting the car under the map works, but then players can glitch out if they press F in the wrong moment. Any ideas/help?
-
How can i make this work ? How could i do that you can tow motorcycles ?
-
Jani1337 changed their profile photo
-
Why is this script broken ? function impoundVehicle(thePlayer, commandName) if tonumber(getElementData(thePlayer, "acc:admin") or 0) >= 8 or exports.exg_dashboard:isPlayerInFaction(thePlayer, 7) then if getElementData(thePlayer, "loggedin") then for k, v in ipairs(getElementsByType("vehicle")) do local x, y, z = getElementPosition(thePlayer) local tx, ty, tz = getElementPosition(v) local int, dim = getElementInterior(thePlayer), getElementDimension(thePlayer) local tint, tdim = getElementInterior(v), getElementDimension(v) local distance = getDistanceBetweenPoints3D(x, y, z, tx, ty, tz) if distance <= 3 and int == tint and dim == tdim then local veh = v local ownerID = getElementData(veh, "veh:owner") or 0 local ownerName = getElementData(veh, "veh:oname") or "" local vehName = exports.exg_carshop:getVehicleRealName(getElementModel(veh)) local plate = getVehiclePlateText(veh) local vehID = getElementData(veh, "veh:id") setElementDimension(veh, 10000+ownerID) setElementData(veh, "veh:impounded", 1) dbExec(con, "UPDATE vehicle SET lefoglalva='1' WHERE id='" .. vehID .. "'") for key, value in ipairs(getElementsByType("player")) do if getElementData(value, "loggedin") and getElementData(value, "acc:id") == ownerID then outputChatBox(" ", value) --outputChatBox("#0094ffLos Santos Police Department:#ffffff Egy járművét szabálytalan parkolás miatt lefoglaltuk. További információkért fáradjon be a postára, és vegye át a hivatalos értesítőt.", value, 255, 255, 255, true) --outputChatBox("#0094ffTípus: #ffffff"..vehName .. "", value, 255, 255, 255, true) --outputChatBox("#0094ffRendszám: #ffffff"..plate .. "", value, 255, 255, 255, true) outputChatBox("================ #0094ffLos Santos Police Department értesítés#ffffff ================", value, 255, 255, 255, true) outputChatBox("#ffffffEgy járművét lefoglaltuk. Amennyiben szeretné kiváltani, forduljon a rendőrséghez.", value, 255, 255, 255, true) outputChatBox(" ", value) sendGroupMessage(7, getPlayerName(thePlayer) .. " lefoglalt egy járművet.") sendGroupMessage(7, "Rendszám: " .. plate .. " | Típus: " .. vehName .. "") sendGroupMessage(7, "Tulajdonosként nyílvántartott: " .. ownerName .. "") exports.mta_admin:outputAdminMessage("#7cc576" .. getPlayerName(thePlayer):gsub("_"," ") .. "#ffffff lefoglalt egy járművet. (" .. plate .. " | " .. vehID .. ")") end end end end end end end addCommandHandler("lefoglal", impoundVehicle) It works. But the cars dimension doesent change
-
Hi ! I just downloaded a simple script that puts NOS into cars when u hold fire. I wanted to make it so it only works for selected serials but now i get this error : ERROR : Loading script failed: nos\nitro.lua:17: unexpected symbol near ')' Please help ! Attached code bellow Engedelyezettserial means AllowedSerials engedelyezettserial = { [""]=true, -- NoOne [""]=true, -- Mili ["9BC41DB2DB129348886FB6A5603433F2"]=true, -- Jani } g_Me = getLocalPlayer( ); g_Root = getRootElement( ); g_ResRoot = getResourceRootElement( ); addEventHandler( "onClientResourceStart", g_ResRoot, function( ) if engedelyezettserial[getPlayerSerial(thePlayer)] then bindKey( "vehicle_fire", "both", toggleNOS ); bindKey( "vehicle_secondary_fire", "both", toggleNOS ); end ) function toggleNOS( key, state ) local veh = getPedOccupiedVehicle( g_Me ); if engedelyezettserial[getPlayerSerial(thePlayer)] then if veh and not isEditingPosition then if state == "up" then removeVehicleUpgrade( veh, 1010 ); setControlState( "vehicle_fire", false ); else addVehicleUpgrade( veh, 1010 ); end end end
