Sehr geehrte Community,
ich wollte euch mal fragen wie ich es machen kann, das sobald ein User mit einem Bike fährt das die Mauspfeil oben taste ungebindet wird.
Das habe ich momentan raus:
Lua
bike = { [471]=true, [523]=true, [581]=true, [521]=true, [463]=true, [522]=true, [461]=true, [468]=true, [586]=true, [462}=true }
function arrow_re ( player )
if getElementType == "player" then
if bike[getElementModel ( source )] then
unbindKey ( player, "arrow_u", "down", arrow_re )
end
end
end
addEventHandler ( "onClientVehicleEnter", getRootElement (), arrow_re )
Alles anzeigen
Und so in der meta.xml
<script src="bike_fix.lua" type="client" />
Ich bedanke mich schon mal im vor raus
pr0mise