diff --git a/ENTITY/DeleteEntity.md b/ENTITY/DeleteEntity.md index 6c23574b1..2e0209180 100644 --- a/ENTITY/DeleteEntity.md +++ b/ENTITY/DeleteEntity.md @@ -19,8 +19,7 @@ Deletes the specified entity, and invalidates the passed handle (i.e. in/out arg ```lua local light = GetEntityModel(prop_streetlight_01) -local lightEntity = CreateObject(light, 0, 0, 0, False, False, False) +local lightEntity = CreateObject(light, 0, 0, 0, false, false, false) if not DoesEntityExist(lightEntity) then return end DeleteEntity(lightEntity) -end ``` \ No newline at end of file diff --git a/ENTITY/GetEntityType.md b/ENTITY/GetEntityType.md index b24eac14d..490853c37 100644 --- a/ENTITY/GetEntityType.md +++ b/ENTITY/GetEntityType.md @@ -24,6 +24,5 @@ the entity type of the given entity as a integer. ## Examples ```lua -local light = GetEntityModel(prop_streetlight_01) -local lightType = GetEntityType(light) +local entityType = GetEntityType(PlayerPedId()) -- entityType should be '1' ``` \ No newline at end of file