Hallo Liebe Community,
Der untere teil ist ein jump script oder liege ich da falsch?
Das ist ein vorlage aus dem internet ist die richtig?
Spoiler anzeigen
Lua
Me = getLocalPlayer()
Root = getRootElement()
local screenWidth, screenHeight = guiGetScreenSize() -- Get the screen resolution
outputChatBox ("", 27, 89, 224, true)
outputChatBox ("", 27, 89, 224, true)
outputChatBox ("", 27, 89, 224, true)
outputChatBox ("", 27, 89, 224, true)
outputChatBox ("", 27, 89, 224, true)
outputChatBox ("", 27, 89, 224, true)
outputChatBox ("", 27, 89, 224, true)
outputChatBox ("", 27, 89, 224, true)
outputChatBox ("", 27, 89, 224, true)
outputChatBox ("", 27, 89, 224, true)
outputChatBox ("", 27, 89, 224, true)
outputChatBox ("[MAP]: #FFFFFF[DM] -", 27, 89, 224, true)
outputChatBox ("[MAP]: #FFFFFFSong name: ", 27, 89, 224, true)
outputChatBox ("[MAP]: #FFFFFFPress #008DFF'M'#FFFFFF to toggle the music On/Off.", 27, 89, 224, true)
addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), Main )
function disableClouds ()
setCloudsEnabled ( false ) -- Hide the clouds for all players when the resource starts
end
addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), disableClouds )
function Main ()
bumper1 = createMarker(3834.099609375, -2109.19921875, 260.60000610352, "corona", 2, 0, 0, 255, 255)
addEventHandler ( "onClientMarkerHit", getRootElement(), MainFunction )
end
addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), Main )
function MainFunction ( hitPlayer, matchingDimension )
vehicle = getPedOccupiedVehicle ( hitPlayer )
if hitPlayer ~= Me then return end
if source == bumper1 then
setElementVelocity(vehicle,2, 0, 1) end
end
Alles anzeigen
ich check das nicht ich habe hier die marker ausn map editor:
Spoiler anzeigen
Lua
<marker id="marker (corona) (17)" type="corona" color="#DB00B999" size="5" interior="0" dimension="0" posX="4269" posY="-1682.4000244141" posZ="240.69999694824" rotX="0" rotY="0" rotZ="0"></marker>
<marker id="marker (corona) (20)" type="corona" color="#53005899" size="20" interior="0" dimension="0" posX="4255.5" posY="-1161.5" posZ="9" rotX="0" rotY="0" rotZ="0"></marker>
mann soll dann von marker 17 zu marker 20 jumpen
Ich bitte um hilfe
Mfg